Flash Partition, Flash corruption - S32K148

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flash Partition, Flash corruption - S32K148

867 Views
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 Kudos
Reply
3 Replies

782 Views
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 Kudos
Reply

809 Views
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 Kudos
Reply

846 Views
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 Kudos
Reply