Hard fault exception lpc5506

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

Hard fault exception lpc5506

跳至解决方案
993 次查看
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 解答
387 次查看
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 回复数
388 次查看
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 项奖励
回复
921 次查看
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 项奖励
回复