Based on RTD2.0.0,modify the memory space of link file(.ld) ,as follows.hardfault error often occur during debugging.Later, follow the MPU configuration in RTD3.0.0 system.c ,there is no hardfault error.So i want to know the difference in MPU configuration between RTD2.0.0 and RTD3.0.0.Thanks!
What is your part number?
I checked the MPU configuration of S32K312, RTD 2.0 as well as 3.0, it's all the same.Can you tell which configuration of the MPU you modified? so that i can reproduce this problem.
I interpreted the difference between these two register configurations
0x01040021 & 0x03080021
XN AP TEX S C B SRD SIZE
000 0 0 001 00 000 1 0 0 00000000 00 10000 1
000 0 0 011 00 001 0 0 0 00000000 00 10000 1
you can find MPU_RASR register definition here:CM7 MPU Register
MPU_RASR->AP
You can see that RTD2.0.0 has set access rights to this 64kb space, while RTD 3.0.0 has not set access rights(Full access)