Flash Partition, Flash corruption - S32K148

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

Flash Partition, Flash corruption - S32K148

2,848 次查看
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,763 次查看
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,779 次查看
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,816 次查看
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 项奖励
回复