How to unsecure JTAG with CSEC

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

How to unsecure JTAG with CSEC

Jump to solution
630 Views
stmrs
Contributor I

Hi, I have set FSEC to following value
.long 0xFFFF7F40 /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */

Also prior to this configured CSEC.

MCU is S32K148.

Now during flashing some issue happened and module is not accessible anymore.

Is there a way using Lauterbach to erase CSEC keys and than do do mass erase?

When I try with PEmicro to flash binary, it just says device is secure over and over again but does nothing when I click to unsecure it.

Tags (3)
0 Kudos
Reply
1 Solution
543 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @stmrs 

This was discussed here many times. For example:

https://community.nxp.com/t5/S32-Design-Studio/S32K146-MCU-quot-Device-is-secure-Erase-to-unsecure-q...

or

https://community.nxp.com/t5/S32K/CAN-unresponsive-after-securing-S32K14x/m-p/1582417/highlight/true...

When CSEc is enabled, mass erase is blocked. To unsecure the MCU, it's necessary to run mass erase... It would be necessary to have an application in the flash which either erases the keys (i.e. disables CSEc) or which run Backdoor Verify command to temporarily release the security or which reprograms the FSEC byte in flash. If there's no such application, there's no way to recover. 

Regards,

Lukas

View solution in original post

0 Kudos
Reply
1 Reply
544 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @stmrs 

This was discussed here many times. For example:

https://community.nxp.com/t5/S32-Design-Studio/S32K146-MCU-quot-Device-is-secure-Erase-to-unsecure-q...

or

https://community.nxp.com/t5/S32K/CAN-unresponsive-after-securing-S32K14x/m-p/1582417/highlight/true...

When CSEc is enabled, mass erase is blocked. To unsecure the MCU, it's necessary to run mass erase... It would be necessary to have an application in the flash which either erases the keys (i.e. disables CSEc) or which run Backdoor Verify command to temporarily release the security or which reprograms the FSEC byte in flash. If there's no such application, there's no way to recover. 

Regards,

Lukas

0 Kudos
Reply