Hello @Shruthi_C,
Can you please find the fault instruction?
Add this handler
void HardFault_Handler(void)
{
while(1)
{
}
}
Once it is captured there, you should see the address of the fault instruction on the stack.
You can refer to this document:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
The example triggers this fault:
uint32_t read = *((uint32_t*)0x0007FFFA);
uint32_t read = *((uint32_t*)0x20000021);
Regards,
Daniel