s32k144 Backdoor Key Access

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

s32k144 Backdoor Key Access

跳至解决方案
2,404 次查看
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 项奖励
回复
1 解答
2,393 次查看
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

 

在原帖中查看解决方案

4 回复数
2,387 次查看
kmh48301
Contributor IV

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

0 项奖励
回复
2,401 次查看
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 项奖励
回复
2,398 次查看
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 项奖励
回复
2,394 次查看
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