2019-01-24 06:41 PM
I write a delay function using systick,it works well in stm32f103rbt6,but the same function does not works well when I select another chip stm32f105rbt6.when I toggle the led every 500ms,it is actually toggled every 1562ms,much slower than expected when I measured the delayed time using the oscilloscope.I have checked the 8M Crystal/Ceramic resonators and found it works well.Please help me find the problem,thank you very much!
compiler:ARM MDK 5.15
LED PIN:PD2
RCC:8M Crystal/Ceramic resonators
Solved! Go to Solution.
2019-01-24 10:47 PM
Thank you very much,I've just solved this problem,the reason is that the standard library code take the Crystal/Ceramic resonator to be 25M as default,but actually,I used an 8M Crystal/Ceramic resonator,so I must modify the standard library to adapt this change.
anyway,thanks for your help!
2019-01-24 09:12 PM
Make sure HSE_VALUE (define) is 8000000 and not 25000000
2019-01-24 10:46 PM
I've just solved this problem,the reason is that the standard library code take the Crystal/Ceramic resonator to be 25M as default,but actually,I used an 8M Crystal/Ceramic resonator,so I must modify the standard library to adapt this change.
2019-01-24 10:47 PM
Thank you very much,I've just solved this problem,the reason is that the standard library code take the Crystal/Ceramic resonator to be 25M as default,but actually,I used an 8M Crystal/Ceramic resonator,so I must modify the standard library to adapt this change.
anyway,thanks for your help!