Hi NXP team.
The HardFault(1.jpg) issue happens while checking sector(0x00400000) erase functionality of S32K312.
The below API functions have to be placed into SRAM (".ramcode" section), as the attached files(2.jpg).
Hi Daniel.
This issue is resolved.
Thank you for your support.
BRs.
Eddie Park
Hello @EddiePark,
Please specify the RTD revision.
Does the fault occur during or after the flash operation?
If you are erasing the sector starting at 0x00400000, where is the application code located?
As discussed here:
https://community.nxp.com/t5/S32K/S32K344-C40-IP-Hardware-Fault-Problem/td-p/1697432
Place this function to SRAM too:
C40_Ip_MainInterfaceHVJobStatus()
Check the .map file to confirm the functions are in SRAM.
Regards,
Daniel