LPC1517 SystemCoreClock becomes ZERO

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1517 SystemCoreClock becomes ZERO

ソリューションへジャンプ
1,079件の閲覧回数
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 解決策
996件の閲覧回数
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 返信
997件の閲覧回数
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 件の賞賛
返信