Hi,
How can I get the vales of these registers? I would like to get them in the hard fault isr. I need to find what call was made that caused the interrupt.
Thanks,
-Mike
Hi Mike:
It is not easy to debugging the hard fault. I hope the following info is helpful
MQX sets active stack pointer to PSP in boot.s.
The core automatically swithes the active stack pointer to MSP in handler mode and switches back to PSP with exception return.
Please refer to this link for how to debug and diagnose on ARM MCUs.
Debugging and diagnosing hard faults on ARM Cortex-M CPUs
Have a great day,
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button or helpful. Thank you!
-----------------------------------------------------------------------------------------------------------------------