action:
1. Clear the keys in the CSEc module
2. Burn a bin file without CSEc function
3. After the programming is successful, power on and start again, and in J-flash, use the F4 command to manually erase the chip.
4. After the erasing is successful, use J-Commender: unlock kinetis to unlock the chip
5. After unlocking successfully, re-use J-flash to burn a bin file.
6. The bin file shows that the burning is successful, but the operation is not normal. Through S32DS-debug, it is found that the code for the flash partition cannot be executed during initialization, and it has been restarted there repeatedly.
wenfengyao_0-1654843471696.png
When reading the MDM-AP status register, it shows 0x00000000:
wenfengyao_1-1654843554203.png
Perform mass erase on the chip and then read the display as:
wenfengyao_3-1654843724621.png
May I ask what caused the inability to partition the flash and how to solve it?