Some problem with Rcc config #815
-
Hi, When I want to config the clock for the system, I meet some problem. I used the stm32f401rct6 and the code was like let clock = rcc.cfgr If you know why that happen, I will appreciate that so much. Thanks for your time. shvshy |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
First of all I'd check the oscillator on your board. Try to comment out |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your time. Here's the pic of the oscillator. shevshy |
Beta Was this translation helpful? Give feedback.
-
Is it freezes or it works but usart not working? |
Beta Was this translation helpful? Give feedback.
delay_ms()
is just an alias fordelay::<1000>()
where1000
is frequency of timer clocking used to calculate timer prescaler which is 16bit width.84MHz / 1kHz == 85000 > 2^16