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

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

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

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