User/System Mode Registers

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

User/System Mode Registers

634 Views
Mike_d
Contributor IV

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

0 Kudos
Reply
1 Reply

538 Views
danielchen
NXP TechSupport
NXP TechSupport

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.

pastedImage_2.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply