S32R274 updates a specific variable in the data cache

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32R274 updates a specific variable in the data cache

1,711件の閲覧回数
dong06
Contributor I

Hello, I have some chip S32R274 data cache issues.

 

The first is to enable the cache function. Is it possible to enable the data caching function of the relevant kernel by setting DCINV directly after setting DCE of L1CSR0?

 

The second issue is whether the specified variables can be set to use caching instead of all variables being cached once enabled?

 

In addition, the description of cache function in the reference manual is not clear enough. I need more information about the data cache of this chip. Could you share it?

 

Looking forward to your reply!

 

0 件の賞賛
返信
2 返答(返信)

1,704件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

The procedure to enable cache memory can be found in AN12553, section 7.5.6 Enable cache:

https://www.nxp.com/docs/en/application-note/AN12553.pdf

And also in startup files of a project created by S32 Design Studio IDE:

lukaszadrapa_0-1650635790924.png

You can use SMPU module to define which areas will be cacheable and which will be cache inhibited. There’s CI bit in SMPU_RGDn_WORD3 register.

lukaszadrapa_1-1650635838867.png

 

If you use SDK, it can be configured here:

lukaszadrapa_2-1650635847604.png

 

An example of SMPU configuration without SDK can be found here (for different MCU):

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-SMPU-initialization-Process-ID-...

 

Regards,

Lukas

 

0 件の賞賛
返信

1,677件の閲覧回数
dong06
Contributor I

Let me try.

Thank you for your answer, Lukas!

 

0 件の賞賛
返信