s32k144 Backdoor Key Access

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

s32k144 Backdoor Key Access

Jump to solution
2,399 Views
kmh48301
Contributor IV

Hello.

 

I need to block debug interface.

So I have studied FSEC, Backdoor key access in RM, nxp community.

 

It seems when the muc is secured and Mass Erase is disabled,

the backdoor key FTFC command is the only way to reprogram the mcu.

 

But that way is also able when the flash have the code to run that backdoor key FTFC command.

Is it correct? 

 

what if the flash have to code to reprogram the flash configuration field to make unsecured?

 

I need to make sure the ways and condition how to change from secured state to unsecured state.

 

Thanks

Best regards

Phillip

0 Kudos
Reply
1 Solution
2,388 Views
danielmartynek
NXP TechSupport
NXP TechSupport

The Backdoor key command is recommended, it unlocks the MCU without a need to reprogram anything, The MCU is then secure again after a reset.

Reprogramming the Flash configuration field is not recommended.

You would need to

1. Save the first sector somewhere

2. Erase the first sector (including the vector table)

3. Program the Flash configuration field (to unsecure) and put all the erased data back.

4. Reset the MCU

There is a risk that something goes wrong during the re-programming (e.g. the MCU gets reset during the process).

Also, to secure the MCU, you would need to do all the steps again.

 

Regards,

Daniel

 

View solution in original post

4 Replies
2,382 Views
kmh48301
Contributor IV

I got it. Thank you so much Daniel !!!

0 Kudos
Reply
2,396 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Phillip,

I'm not sure if I understand this:

what if the flash have to code to reprogram the flash configuration field to make unsecured?

The MCU can be unlocked by erasing the first sector (0x0000-0x1000) and programming it to an unlocked state, the MCU is then unlocked once it is reset.

But this is not recommended.

 

BR, Daniel

 

0 Kudos
Reply
2,393 Views
kmh48301
Contributor IV

Hi, Daniel.

Thanks for replying.

 

===========================================================================

what if the flash have to code to reprogram the flash configuration field to make unsecured?

: If I unsecure the chip by reprogramming flash configuration field, any problem can be occurred?

I think if that doesn't have any problem, the backdoor command is useless.

============================================================================

 

compare please.

"backdoor command" vs "reprogram flash configuration field"  [Unsecuring Method]

 

Thanks

Best Regards

Phillip

0 Kudos
Reply
2,389 Views
danielmartynek
NXP TechSupport
NXP TechSupport

The Backdoor key command is recommended, it unlocks the MCU without a need to reprogram anything, The MCU is then secure again after a reset.

Reprogramming the Flash configuration field is not recommended.

You would need to

1. Save the first sector somewhere

2. Erase the first sector (including the vector table)

3. Program the Flash configuration field (to unsecure) and put all the erased data back.

4. Reset the MCU

There is a risk that something goes wrong during the re-programming (e.g. the MCU gets reset during the process).

Also, to secure the MCU, you would need to do all the steps again.

 

Regards,

Daniel