script for activating Secure Boot over SWD Interface for MCU NXP S32K118

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

script for activating Secure Boot over SWD Interface for MCU NXP S32K118

939 Views
prabhatg44
Contributor I

The NXP S32K Microcontroller has a Security Module called CSEc.
During production process of the, Script for secure Boot has to be activated on the CSEc Module.

Could you please provide script how to activate Secure Boot over the SWD interface.

0 Kudos
3 Replies

886 Views
prabhatg44
Contributor I

Cannot able to find  "section “4.4 Secure Boot”. SW examples are included" in https://www.nxp.com/docs/en/application-note/AN12130.pdf

Please do the needful to resolve the issue.

0 Kudos

926 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

First let me share this application note about the production programming:

https://www.nxp.com/docs/en/application-note/AN12130.pdf

 

Then we have application note AN5401 describing CSE operations:

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

https://www.nxp.com/webapp/Download?colCode=AN5401SW&docLang=en

 

It thoroughly describes how to configure the device and how to use the security features. My recommendation is to read whole section “4.4 Secure Boot”. SW examples are included.

 

Example “1_Configure_part_and_Load_keys” shows how to enable the CSE by partition command and how to load kyes. Example “4_secure_boot_add_BOOT_MAC_manual” shows how to enable secure boot, how to load boot mac key and how to add the MAC (either manually or automatically).

 

The examples show all steps which needs to be done. One option is to rewrite the steps to your scripting language and run it via SWD interface. Second option is to use these RAM projects (or you can write your own projects depending on your needs), so your SWD tool can load the image to RAM and execute it.

Regards,

Lukas

0 Kudos

857 Views
prabhatg44
Contributor I

Thanks @lukaszadrapa ,

The Zipped folder was really helpful but while trying that script with my NXP board in Keil compiler is giving so many bugs. So, there is a request that if you have a debugger set up file for the script shared. Please share that also that will be very helpful in the proceeding.

Regards and Thanks,

Prabhat

0 Kudos