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?
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
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.
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