Script to write 128 bit Secure Boot Keys over SWD Interface

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

Script to write 128 bit Secure Boot Keys over SWD Interface

Jump to solution
1,279 Views
prabhatg44
Contributor I
 
0 Kudos
Reply
1 Solution
1,275 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

View solution in original post

0 Kudos
Reply
2 Replies
1,276 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
Reply
1,230 Views
prabhatg44
Contributor I

Thank you for sharing the code I have implemented those codes using Keil compiler for NXP S32K116 microcontroller. So, how I should make sure whatever I flashed is implemented or not in the microcontroller(To explain to other people).

0 Kudos
Reply