How to unlock S32k1xx if Flash configuration field was set wrongly.

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

How to unlock S32k1xx if Flash configuration field was set wrongly.

跳至解决方案
1,266 次查看
LewisThin
Contributor III

Hello everyone:

     I download a wrong srecord which is filled with 0 to my board. So the Flash Configuration Fields were set to 0 and the MCU was locked.

    I use debugger to try to unlock it but there is nothing to work.

    Then I use the debugger to read the MDM-AP status, the value is 0x34 and I can not run mass erase command.

     I use the scope the watch the wave of the reset pin. It looks like about 10ms~20ms low and about 250μs high.

I tried the urls below but nothing works.

https://community.nxp.com/t5/S32K/Unbricking-S32K146/m-p/937230?commentID=1166947#comment-1166947

https://community.nxp.com/t5/S32K/Accessing-S32K146-back-up-again/m-p/1378935

Is there any solution?

 

标记 (2)
0 项奖励
回复
1 解答
1,240 次查看
VaneB
NXP TechSupport
NXP TechSupport

I suggest you try doing a mass erase with another debugger always making sure the reset pin is in low state. If this is not possible, the MCU is bricked.

Sorry about the inconvenience.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,254 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @LewisThin 

Did you enables CSE? If yes, mass erase will not work, just in the case that the key is configured as write-protected.

If you can't establish connection via JTAG/SWD anymore and there is no code in the flash that could do that, the device is bricked.

 

B.R.

VaneB

0 项奖励
回复
1,247 次查看
LewisThin
Contributor III

yes,VaneB,the s-record file is filled with 0. So the data in address 0x40C is 0, which means the SEC value is 00b.

the s-record is invalid so the code could not run normally.

标记 (1)
0 项奖励
回复
1,241 次查看
VaneB
NXP TechSupport
NXP TechSupport

I suggest you try doing a mass erase with another debugger always making sure the reset pin is in low state. If this is not possible, the MCU is bricked.

Sorry about the inconvenience.

0 项奖励
回复