Flash Protect of S32K

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

Flash Protect of S32K

970 Views
Kofi_Wang
Contributor I

Hi~

I need to enable flash protect of S32K144F512. but I have 2 questions which do need your help:

1. How can I configure the Flash Configuration Field (0x400-0x40F)so as to secure the MCU?

2. If the MCU is secure after the above configuration(FSEC[KEYEN] =10'b and FSEC[SEC] != 10'b), How can I use JTAG to unsecure it except launch erase all command?(I use IAR as my debug tool)

 CAN I use IAR to launch verify back door command so as to unsecure the MCU? if I can, what do I need to do to launch this command?

Really Thanks.

BR

Kofi

0 Kudos
Reply
1 Reply

956 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Kofi,

1.
Program the FSEC[SEC] byte in the Flash Configuration field to secure the MCU (as you mentioned FSEC[SEC] != 10'b)

2.
The debugger can mass erase the MCU to unsecure it only, it can't launch the backdoor key command.
The backdoor key can be launch by the application running on the MCU only.
Once the MCU is unlocked, you should be able to connect the debugger provided the debugger does not reset the MCU.
Because any reset causes the MCU to be locked again.
Please contact IAR Systems for more information on how to use the debugger without resetting the MCU.

 

Regards,

Daniel

 

0 Kudos
Reply