S32K324 HSE secure boot

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

S32K324 HSE secure boot

1,345 Views
james131618
Contributor I

Hello NXP team:

I am developing secure boot using HSE on S32K324.

I have installed the HSE firmware(A/B swap) on the chip and HSE module is working.(ex: can read the HSE version by service)

I wanted to familiarize how to use the HSE module, so I downloaded the sample code (S32K3XX_demo_app) from the official website and execute it.

But now I have a problem, and I describe my test steps:

1.  Run the sample code(S32K3XX_demo_app), and the program stays at line 155.

     james131618_0-1701921034864.png

2.   I set the variable gRunExampleTest to APP_SECURE_BOOT_CONFIGURED in the Expressions      window, and the program will enter line 241.

     james131618_1-1701921082779.png

3.  Enter the function SecureBootService(),

     3-1execute HSE_EraseKeys() return HSE_SRV_RSP_OK

                           FormatKeyCatalog() return HSE_SRV_RSP_OK →  

                           ImportSymmetricKeys() return HSE_SRV_RSP_OK

     3-2:execute SecureBootConfiguration() → ConfigureBasicSecureBoot() →

              Check_DebugKey_status() return HSE_SRV_RSP_NOT_ALLOWED

             james131618_2-1701921196026.png

My qusetion: How can I make Check_DebugKey_status() return HSE_SRV_RSP_OK?

The question has troubled me for a long time.

I hope to get a reply as soon as possible.

 

Thanks.

 

0 Kudos
Reply
1 Reply

1,302 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @james131618 

please take a look at the readme file:

c:\NXP\HSE_DEMOAPP_S32K3XX_0_2_6_0\HSE_DEMOAPP_S32K3XX_0_2_6_0_ReadMe.pdf

Section 4.2 says that Trace32 Lauterbach debugger is necessary to run the demo.

lukaszadrapa_0-1702040176975.pnglukaszadrapa_1-1702040184198.png

You can use user menu in the Trace32:

lukaszadrapa_2-1702040273251.png

This demo app is not supposed to be used without Trace32. If you have Trace32, follow all the steps described in the readme file.

If you don't have trace32, take a look at this set of examples:

https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples

Also if you are interested in Secure Boot, we provide Secure Boot application note including demo projects which explains all the steps in detail. It can be downloaded from:

https://www.nxp.com/products/processors-and-microcontrollers/s32-automotive-platform/s32k-auto-gener...

Application note can be found here:

Documentation -> Secure Files -> Secure Boot Application note v0.1.1.0 (AN744511)

Associated demo project can be downloaded here:

Design Resources -> Software -> Secure Files -> SecureBootAppNoteDemo (SW745310)

Regards,

Lukas

0 Kudos
Reply