Re: Trunk, STM32F107VC, how set a CPU frequency of 72MHz with HSE of 25MHz
Michael Fischer <[email protected]> Sun, 17 Apr 2016 14:42:46 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion