LPC1517 SystemCoreClock becomes ZERO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC1517 SystemCoreClock becomes ZERO

跳至解决方案
1,053 次查看
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?

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
970 次查看
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 项奖励
回复
1 回复
971 次查看
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 项奖励
回复