While running the program, the SystemCoreClock became zero for no reason.
I was working on timer, and the timer interrupt suddenly stopped. When I debugged and checked the peripherals of SCTimer, the match value came to 0xffff, when I rewinded back, SystemCoreClock showed zero instead of 71999999.
Is it any hardware issue or any hardfaults or any other faults?
解決済! 解決策の投稿を見る。
I solved the problem, the SystemCoreClock must be globally initialized if its call is in another function, or use GetSystemCoreClock() function.
I solved the problem, the SystemCoreClock must be globally initialized if its call is in another function, or use GetSystemCoreClock() function.