How to diagnose a Hard Fault Exception on STM32F407IGT
Hello
After running the code for about one to two hours I always get Hard Fault exception. Readout of the registers in this Hard Fault while loop are:
HFSR=0x4000 0000
CFSR=0x8200
BFAR=0x20020000
MMFAR=0x20020000
AFSR=0
Readout of the SP register shows:
SP=0x2001ff40
*(SP)=8
*(SP-1)=8
*(SP-2)=1
*(SP-3)=2
*(SP-4)=2
*(SP-5)=2
*(SP-6)=0
*(SP-7)=0
*(SP-8)=0x2001ffc0
*(SP-9)=0x8012ae8
What is going on here? How to make a proper recovery from this situation?
