User/System Mode Registers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

User/System Mode Registers

877 次查看
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 项奖励
回复
1 回复

781 次查看
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 项奖励
回复