Hard fault exception lpc5506

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

Hard fault exception lpc5506

ソリューションへジャンプ
1,020件の閲覧回数
marektyp
Contributor I

Hi,

I have a problem with random hard fault exception. My program sometimes works 1h, sometimes 1s and sticks in hard fault. LR=0xffffffa8, stack is not overflow. I'm using an interrupts.  Any ideas?

Best regards

Marek

 

marektypanski_0-1737141774001.pngmarektypanski_1-1737141802435.png

 

ラベル(1)
0 件の賞賛
返信
1 解決策
414件の閲覧回数
marektyp
Contributor I

Dear all,

I've found source of the problem. The code is OK. The issue was caused by low core voltage. My core run on 96MHz, compiler set the medium voltage level. Until I do not run many peripherals everything was wright, but when my program grown up the core needs more power :). I set core voltage on maximum and problem disapeard.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
415件の閲覧回数
marektyp
Contributor I

Dear all,

I've found source of the problem. The code is OK. The issue was caused by low core voltage. My core run on 96MHz, compiler set the medium voltage level. Until I do not run many peripherals everything was wright, but when my program grown up the core needs more power :). I set core voltage on maximum and problem disapeard.

0 件の賞賛
返信
948件の閲覧回数
Harry_Zhang
NXP Employee
NXP Employee

Hi @marektyp 

Based on your picture, the Link Register (LR) value of 0xffffffa8 suggests that the exception occurred while the processor was trying to return from an interrupt or an exception handler.
This might indicate a problem within the interrupt handling routines or an issue with how interrupts are being managed.

BR

Harry

0 件の賞賛
返信