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

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

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

ソリューションへジャンプ
1,196件の閲覧回数
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,170件の閲覧回数
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,184件の閲覧回数
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,177件の閲覧回数
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,171件の閲覧回数
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 件の賞賛
返信