Hello All,
I am working on Bootloader development for S32k118 and s32k142 ,Compiler for IAR. when I was erase memory for S32k118 it Successfully Done .when I was try to erase memory for S32k142 facing issue for Hard fault handler .I did Disable global interrupts also .is there any changes required in IDE ?please help me ,this is for urgent project need to delivery to Customer .
why its happened s32k142?why not in s32k118?

This is my code for erase memory :

Thank you so much for your Response
Regards,
Ganesh Babu Vaka