I am using S32_SDK_S32K1xx_RTM_4.0.2 package, I have found some other information when follow the below steps:
1. erase all the chip.
2. flash S19 file with cyclone,(the data in range [0x400,0x40F] is FF FF FF FF FF FF FF FF FF FF FF FF FE 7F FF FF)
3. power off->power on, read the address range [0x400,0x40F], result is 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
4. modified the 0x40D(FTFC_FOPT) from 0x7F to 0xFF.
5. repeat step 1 to step 3, the MCU run normally.
the default FTFC_FOPT value is defined as 0x7F in startup_S32K144.S, I checked the FOPT definition in S32K-RM, the bit4-bit7 are all reserved, I think the high four bits should not affect the programming, I don't know why 0x7F will cause the failure.
