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

791件の閲覧回数
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 返答(返信)

770件の閲覧回数
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 件の賞賛
返信

761件の閲覧回数
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 件の賞賛
返信

749件の閲覧回数
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 件の賞賛
返信