Hello @hkaracali,
This is not related to the boot protection.
As we discussed this issue via a ticket, the MCU appears to be secure.
And since the Mass erase feature is blocked by the enabled CSEc engine, it cannot be mass erased and unlocked.
This needs to be take into consideration whenever the CSEc engine is enabled.
Please refer to AN12130 Production Flash Programming Best Practices for S32K1xx MCUs
https://www.nxp.com/docs/en/application-note/AN12130.pdf
3.2.5.2 Mass erase and CSEc considerations
Regards,
Daniel