Hii,
I am facing an issue in my linker file. As soon as I add a section under int_flash_safeos_c0 and I enabled the MPU (Memory Protection Unit) and divided it into two sections: OsROM and OsRAM. When using it, I encounter a HardFault. I encounter a HardFault on the S32K322 in S32 Design Studio. I am not sure why this is happening. I have attached the Linker here.
Thanks,
Lisha
Hi @Lisha,
I understand this is a MemManage fault.
You should be able to find the memory address and the PC address of the fault instruction, refer to these documents:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
Anyway, this is caused by the MPU that is configured in system.c
Please check the starting address, size and all the attributes of each descriptor.
Regards,
Daniel