Device is secure , erase to unsecure

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

Device is secure , erase to unsecure

5,594 次查看
814420552
Contributor III

Hello. Now I am using s32k146EBV.

 The board can work normally before call API  FLASH_DRV_EraseBlock(&flashSSDConfig, 16);, and debugging can't work here after call this API。 the status is as following

The following error occurred during development. (D1 Led is On)

Cap 2019-05-15 16-07-24-587.pngCap 2019-05-15 16-08-31-797.png

wish you help

 thankyou

0 项奖励
回复
8 回复数

5,416 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi kui,

"Emergency Kinetis Device Recovery by Full Chip Erase" in S32DS debug configuration window may helps.
Emergency Kinetis Device Recovery by Full Chip Erase.png

If still not work, then please try to use the P&E recovery utility mentioned in Bricking and Recovering FRDM-KL25Z Boards: Reset, SWD Clock and Low Power . This tool is able to keep the board halted modem then you can use S32DS program or debug it.

It is also recommended to read a good application note:
 AN12130, Production Flash Programming Best Practices for S32K1xx MCUs

 

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

5,416 次查看
814420552
Contributor III

hello Robin,

      I'm sosorry that I can't open the link you mentioned above. Can you help me send the PDF file in the link to my mailbox? My email is 814420552@qq.com

Thank you for your help.

0 项奖励
回复

5,416 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Please try this web address:

mcuoneclipse.com/2013/06/16/bricking-and-recovering-frdm-kl25z-boards-reset-swd-clock-and-low-power

www.nxp.com/docs/en/application-note/AN12130.pdf

0 项奖励
回复

5,416 次查看
814420552
Contributor III

Hello Robin,

          Today I found a problem ablout S32K146 device security.

           pastedImage_4.png

          if the WRITE_PROTECTION flag has been set, then Key can't  be erased,  CSEc keys saved in EEPROM backup area, then Erase all Blocks command can't be executed.

so how to remove security to unsecurity except backdoor key method?  

and at the same time, debugger can't  remove the security to unsecurity?

pastedImage_7.png

wish your help!

0 项奖励
回复

5,416 次查看
814420552
Contributor III

Dear Robin,

   thanks four your help , I have downloaded this PDF file successfully!

   wish your have a good luck!

0 项奖励
回复

5,416 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi kui,

Please refer: S32K1xx系列MCU使用Tips--Flash加密后不断复位无法连接调试器的问题解决

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

5,416 次查看
814420552
Contributor III

hello,

pastedImage_1.png

      how to connect S32K146 demo board with J-LINK debugger? my demo board is as above picture. 

      thanks for your help      

0 项奖励
回复

5,416 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

"J14 SWD connector" can be used to connect J-LINK debugger.

0 项奖励
回复