s32k144 Backdoor Key Access

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k144 Backdoor Key Access

ソリューションへジャンプ
1,843件の閲覧回数
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 解決策
1,832件の閲覧回数
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 返答(返信)
1,826件の閲覧回数
kmh48301
Contributor IV

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

0 件の賞賛
1,840件の閲覧回数
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 件の賞賛
1,837件の閲覧回数
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 件の賞賛
1,833件の閲覧回数
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