[En-Nut-Discussion] Trunk, STM32F107VC, how set a CPU frequency of 72MHz with HSE of 25MHz
Michael Fischer
fischermi at t-online.de
Sun Apr 17 14:42:46 CEST 2016
Hello Uwe,
I think:
new_sysclk = ((((PLLCLK_IN * PLL2CLK_MULT) / PLL2CLK_PREDIV) * PLLCLK_MULT)
/ (PLLCLK_PREDIV * 2));
is wrong in SetSysClockSource. I will check it with the original
system_stm32f10x from
my lwIP example.
What do you think about?
new_sysclk = (((PLLCLK_IN / PLL2CLK_PREDIV) * PLL2CLK_MULT) / PLLCLK_PREDIV)
* PLLCLK_MULT;
This is the way which is use in system_stm32f10x.c
Best regards,
Michael
More information about the En-Nut-Discussion
mailing list