2019-06-25 12:54 AM
Hello Everybody
I started using Nucleo-F401RE (MB1136 C-04) a few months ago and I am trying to understand how work the SystemInit() function and the clock setting.
As IDE, I use SystemWorkbench/AC6.
When I start a new project using HAL or LL drivers, the system_stm32f4xx.c file which is loaded uses a simple SystemInit() function which sets HSI on and uses it ; it is fairly clear.
But if I start a new project using SPL (standard peripheral lib), the system_stm32f4xx.c file which is then loaded uses a SystemInit() function which calls a SetSyssClock() function.
Can someone tells me where can I find basic documentation about the setting of the clock on a such board ? I read the official doc and search the internet but do not find anything very clear.
Thank you inadvance
Jack-Michel CORNIL
P.S. sorry if my english is not correct but I am french !
2019-08-30 07:49 AM
ad. 1 and 2: Keep in mind that the "|= " is not a simple assignment, but a bitwise OR. So it sets only the 0 bit without changing the others.
ad. 3 0x24003010 is the reset value of PLLCFGR register, so after this assignment the reserved bits are still at reset value.
2019-09-02 12:19 AM
Oops sorry, I did not see the | operator !
OK for the reset value of PLLCFGR, but it seems me quite strange for a F401RE whose max freq is 84MHz.