Flash Partition, Flash corruption - S32K148

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

Flash Partition, Flash corruption - S32K148

2,883件の閲覧回数
rajivbandodkar
Contributor II

I was trying to do an internal flash memory partition from the example code. Initially, the partition happened and when I tried to do it the second time the flash memory got corrupted, and it is not allowing me to reprogram or erase the flash. (the debugger is not able to connect to the controller).

What could be the issue? Any solution or precaution with new MCU?

0 件の賞賛
返信
3 返答(返信)

2,798件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @rajivbandodkar,

Seems like the programming on the first sector was interrupted, and now the debugger reports that the MCU is locked

You can try the unlock kinetis j-link command as described here:

https://community.nxp.com/t5/S32K/Unbricking-S32K146/m-p/937227

If this fails, I'm afraid it cannot be recovered.

 

Regards,

Daniel

 

 

 

 

0 件の賞賛
返信

2,814件の閲覧回数
rajivbandodkar
Contributor II

I used the "flash_partitioning_s32k144" project from the example list. Initially, it was working and I tried to re-partition with the same code by changing the line from " if (flashSSDConfig.EEESize == 0u)" to  if (flashSSDConfig.EEESize != 0u)

Immediately it stopped working.

For the error message. I am attaching the S32DS log file and SEGGER J-Flash log file for reference.

0 件の賞賛
返信

2,851件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @rajivbandodkar,

What is the error message you get?

Which example did you flash? With or without CSEc?

When the first sector is being erased / programmed, there is always a chance that it fails and leaves the flash configuration field in an indeterminate state.

 

Regards,

Daniel

 

0 件の賞賛
返信