Skip to content
Permalink
Browse files

boards: stm32h474i_disco: Fix m4 core sys clock

System clock for m4 core was set to same clock as m7 core.
This is wrong as m4 its value is actually based on clock frequency
value after D1CPRE (sys_d1cpre_ck) divided per HPRE value, 200MHz in
current case.
This also matches the max clock speed for the m4 core (200MHz)

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
  • Loading branch information...
erwango authored and carlescufi committed Aug 1, 2019
1 parent c12688e commit b837252269ecb15d55ba4d1b4c5ad7cf46c2f0a1
Showing with 3 additions and 1 deletion.
  1. +3 −1 boards/arm/stm32h747i_disco/Kconfig.defconfig
@@ -13,7 +13,9 @@ config BOARD

# clock configuration
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 400000000
default 400000000 if BOARD_STM32H747I_DISCO_M7
# SYS_CLOCK_M4 = SYS_CLOCK_M7 / CLOCK_STM32_HPRE
default 200000000 if BOARD_STM32H747I_DISCO_M4

config CLOCK_STM32_D1CPRE
default 1

0 comments on commit b837252

Please sign in to comment.
You can’t perform that action at this time.