S32K3 the difference in MPU configuration between RTD2.0.0 and RTD3.0.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K3 the difference in MPU configuration between RTD2.0.0 and RTD3.0.0

870 次查看
feiyiniu
Contributor II

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!企业微信截图_16859325694689.png

0 项奖励
回复
3 回复数

849 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@feiyiniu

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.

0 项奖励
回复

840 次查看
feiyiniu
Contributor II

Thank you  reply!

Part number is S32K312NHT0VPBST.

I check the system.c about MPU configuration,as follow.企业微信截图_16859516942625.png企业微信截图_16859524121135.png

0 项奖励
回复

828 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@feiyiniu

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

Senlent_1-1685954670371.png

Senlent_2-1685954945436.png

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)

0 项奖励
回复