LPC55S69 : Secure boot vs TrustZone

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC55S69 : Secure boot vs TrustZone

Jump to solution
68 Views
Contributor III

Hi

* I have a simple FreeRTOS "blink" app, it works fine when flashed as plain app 

* If i sign it, flash it as signed app: It boots fine ( i have serial output), which leads me to believe the signing is ok. But it  crashes as soon as freeRTOS scheduler is started

Looking closer, the crash happens when doing the  EXC_RETURN call to switch to the 1st thread

The main difference i've spotted so far is that :

* The "plain app" is running with PSP=PSP_S => Secure mode

* The "signed app" is running with PSP=PSP_NS => unsecure mode

I tried doing the provisioning with elf2sb gui  with Use Header/TZ Enabled/TZ disabled => not better

(with TZ enabled i dont even reach the serial output)

 

So the question : Is there an assumption that TrustZone is enabled when using secure boot ?

What's the proper way to have it behave like "plain" app ? It helps as a first step to go the full trustZone way.

Any additional information would be appreciated

Thank you in advance

Tres

 

 

0 Kudos
1 Solution
58 Views
Contributor III

Found it :

"enableTrustZone": true in the json configuration file 
Works now

View solution in original post

0 Kudos
1 Reply
59 Views
Contributor III

Found it :

"enableTrustZone": true in the json configuration file 
Works now

View solution in original post

0 Kudos