FLASH_DRV_EraseAllBlock is not working. I think this is due to enter secure state, and I have already tried the following
"Emergency Kinetis Device Recovery by Full Chip Erase" in S32DS debug configuration window
I set "#define ERASE_ALL_KEYS" to 1 in the sample project csec_keyconfig_s32k144 to reset the device back to factory state and ran it. However, the status of eraseKeys() became false.