LPC55S69 Secure Fault Handling

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S69 Secure Fault Handling

1,893件の閲覧回数
__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,882件の閲覧回数
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,870件の閲覧回数
__marvin__
Contributor II

Hi Alice,

thanks for pointing me in the right direction.

Best,
marvin

0 件の賞賛
返信