This is a good link on debugging hard fault handlers. Basically, you read the values of the stack frame when the fault triggers: www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html
↧