Hard fault exception lpc5506

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

Hard fault exception lpc5506

Jump to solution
978 Views
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

 

Labels (1)
0 Kudos
Reply
1 Solution
372 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
373 Views
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 Kudos
Reply
906 Views
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 Kudos
Reply