When I use S32K144_FOTA_Bootloader in AN12323SW, I add one line of code:
FLASH_DRV_EraseSector(&flashSSDConfig, 0x41000, 4096*62ul); Then it execute failed, and I cann't connect the mcu through Jlink.
I find that the RESET pin output high level every 475us, I try to use Jlink commander to unsecure it but fail. What else can I do to unsecure it ?Does it relate to the CSEc in AN12323SW?
You could try using the unlock kinetis command while the MCU is held in reset (reset_b pin drivel low externally) out of power-on-reset.
However, if the MCU has been already partitioned for CSEc, you would need to erase the keys first to mass-erase the MCU. Which is not possible once the MCU is secure.