Cortex-M33 core SAU->SFAR register not updated when secure fault is entered for a second time

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

Cortex-M33 core SAU->SFAR register not updated when secure fault is entered for a second time

635 Views
luojia
Contributor I

Hello!

I'm working with TrustZone code on LPC55S69 chip. In my application I read memory address that would trap into SecureFault which would be recovered using EXC_RETURN. After that my application reads another memory address, resulting in trapping again to SecureFault. I expect SAU->SFAR value changed to the second fault memory address; however when the fault happened, my IDE shows that the value remains in first fault memory address when this trapped SecureFault does not refer to.

I tried to change memory addresses to visit, it always shows that second SAU->SFAR remains in the first memory address, whichever addresses I chose to read to.

How to solve this problem? I'm using LPCXpresso55S69 board, code run on core 0 which has TrustZone technology, and MCUXpresso IDE v11.5.0 version.

Looking forward to replies. Thanks!

0 Kudos
1 Reply

612 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello luojia,

Have you check the SDK demo "lpcxpresso55s69_secure_faults " ?

 

BR

Alice

0 Kudos