Chip is S32K118. Ref S32KRM, the DEPART is 0, 3, 8, 9, 0xB,0xf. The Software is Containsed boot0(0~16k,write protected) , boot1(FFH) and App(48K~192K), Dflash is 2k Eeprom and 8k Dflash. The DEPART is 9. There are two apps,. Download app1 via boot0, the software can run.Download app2 via boot0,the software can 't run, because the DEPART is 0xD or 0xE, the EEprom is init failed, the software is at while(EEERDY == 0). then Download app1 via boot0, the software can 't run, because the DEPART is always ,0xD or 0xE and the EEprom is init failed, the software is at while(EEERDY == 0). If it is no useful Dflash ,the app1 or app2 can run, but Erase 8K Dflash can cause a debug crash.
During initialization, check that the value of DEPART is not within the range provided in the manual, resulting in the failure of EEPROM initialization.
APP1 is runing over 24h,then updata app2,EEprom initialization is the same as app1.
The FSEC is: KEYEN: Disabled MEEN: Enabled FSLACC: Granted SEC: unsecure.
Erase all blocks via the example "flash_partitioning_s32k118" at RAM in S32 Platform , it is failed ,because write protected. Erase chip failed by Jlink or Pe ,because write protected.
Now, there is no way to repartition Dflash. I can't reproduce the fault with the new chip in pcba.
Is there any way to recover the chip, I need a way to recover the chip so I can continue testing to find out? I wonder why that is?