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?
Solved! Go to Solution.
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.