Hello Karthik,
There seems to be a couple of issues.
First of all, is the exception caused by the MPU?
In the exception handler, if you read the Configurable Fault Status Register (CFSR[MMFSR]), which of the errors do you see there?
I see you configure the MPU in the application using RTD MCAL.
Is the MPU configured in the startup code too, or is the MPU disabled there?
Thank you,
Best regards,
Daniel
hi ,
1.The issue is not caused by MPU.MPU is disabled both in Startup and Platform.
2.CFSR Register is 0x0
Please let me know if any other possible cause for this issue.
Hello @nkarthik,
You said that you see Hard Fault exception there.
So, in the handler, you should see the type of the exception in CFSR.
Refer to these documents:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
The stack corruption can be caused by by several reasons, for example:
Recomended debugging:
Regards,
Daniel