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
Solved! Go to Solution.
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.
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.
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