LPC1517 SystemCoreClock becomes ZERO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1517 SystemCoreClock becomes ZERO

Jump to solution
538 Views
athmesh_n
Contributor IV

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?

Labels (1)
Tags (1)
0 Kudos
1 Solution
455 Views
athmesh_n
Contributor IV

I solved the problem, the SystemCoreClock must be globally initialized if its call is in another function, or use GetSystemCoreClock() function.

View solution in original post

0 Kudos
1 Reply
456 Views
athmesh_n
Contributor IV

I solved the problem, the SystemCoreClock must be globally initialized if its call is in another function, or use GetSystemCoreClock() function.

0 Kudos