LPC55S69 Secure Fault Handling

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

LPC55S69 Secure Fault Handling

1,903 次查看
__marvin__
Contributor II

Hi,

I'm currently encountering a problem with secure fault handling and semihosting on LPC55S69.

I'm basically trying to access the secure memory (SECURE_CODE_START) directly in order to generate a SecureFault and analyze it afterwards.

 

First of all, I was wondering why an occouring SecureFault seems to trigger a HardFault and is not being handled by the SecureFaultHandler routine. (Please correct me in case I'm wrong)

When overwriting the HardFaultHandler as it is given in the LPC55S69 example (SECURE_FAULT_S/NS), my code stops working when not under an active debug section. I assume that there is something messed up with the semihosting, which has been handled by the previous HardFaultHandler.

 

Thanks a lot && all the best,
__marvin__

0 项奖励
回复
2 回复数

1,892 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Helllo marvin,

Yes,  the SecureFault has been handled by the previous HardFaultHandler, because HardFault has higher priority than any exception.  About detail, you can have a look at  ARM Cortex-M33 User Guide:

https://developer.arm.com/documentation/100235/latest 

Alice_Yang_1-1618908936021.png

 

BR

Alice

1,880 次查看
__marvin__
Contributor II

Hi Alice,

thanks for pointing me in the right direction.

Best,
marvin

0 项奖励
回复