Suggestion needed for testing Flash Security Backdoor Key

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

Suggestion needed for testing Flash Security Backdoor Key

979件の閲覧回数
RogerDavisWork
Contributor II

We are about to enable flash security over the system and flash protection over the bootloader. The process is understood and I have found the functions that are provided for checking security (FLASH_GetSecurityState) and bypassing security using a configured key (FLASH_SecurityBypass) and have implemented them in the code.

The problem is that testing it seems like a one way street where I could easily brick my target.  I tried called the backdoor function but there is code in FTFx_CMD_SecurityBypass to bypass the call if security is not enabled.  If I comment it out so that it performs the bypass anyway, I get a hard fault (not sure if that is the reason, but that's what happens).

So, I am looking for a suggestion on how to set up some tests of the bypass mechanism without the possibility of bricking my device.  My setup is a K81 system with a JLink debugger.  I have also coded a mechanism in the firmware to accept the 8 backdoor key bytes via a serial port.

0 件の賞賛
返信
1 返信

908件の閲覧回数
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

You can take as reference the following community post:

How correct use of Backdoor Key in FRDM-KL82Z board

Hope it helps you.

Have a nice day!

0 件の賞賛
返信