What is the ralationship between "valotile" and cache of S32R274

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

What is the ralationship between "valotile" and cache of S32R274

489 次查看
Durant-Harden-Irving
Contributor III

Hello,

I define a global variable with valotile(cache is enable),and write value twice:

CASE 1:

volatile unsigned int cache_Test;  

cache_Test = 0x100;    //0x100 is written in ram and cache

cache_Test = 0x200;    //0x200 is written in cache while in ram the value is 0x100

CASE 2:

volatile unsigned int cache_Test;  

cache_Test = 0x100;    //not mapping to cache because of valotie; 0x100 is only written in ram.

cache_Test = 0x200;    //0x200 is only written in ram.

My question: which case occur / which case is correct  in s32r274?

Thanks!

MF
0 项奖励
回复
0 回复数