Re: STM32F4 clock problem
Yannis Damigos
On Fri, Jul 28, 2017 at 10:54 AM, Andreas Kölbl
<andreas.koelbl@...> wrote: Hello,Hi Andreas, The default values could be wrong. Using the Clock configuration tool for STM32F40x/41x microcontrollers (AN3988) from http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stsw-stm32091.html, the default values should be: # Clock configuration for Cube Clock control driver CONFIG_CLOCK_STM32_HSE_CLOCK=8000000 CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y # use HSE as PLL input CONFIG_CLOCK_STM32_PLL_SRC_HSE=y # produce 168MHz clock at PLL output CONFIG_CLOCK_STM32_PLL_M_DIVISOR=8 CONFIG_CLOCK_STM32_PLL_N_MULTIPLIER=336 CONFIG_CLOCK_STM32_PLL_P_DIVISOR=2 CONFIG_CLOCK_STM32_PLL_Q_DIVISOR=7 CONFIG_CLOCK_STM32_AHB_PRESCALER=1 CONFIG_CLOCK_STM32_APB1_PRESCALER=4 CONFIG_CLOCK_STM32_APB2_PRESCALER=2 I don't have the hardware, could you test the above values? Yannis
|
|