AnsweredAssumed Answered

the question about hared memory between two cores

Question asked by 宇 杨 on Jan 25, 2019
Latest reply on Feb 1, 2019 by ALEXANDER FEDOTOV

I use the volatile keyword to share the same memory between two cores. When DCache is turned on, the memory values between the two cores are different, and they can only be synchronized when the DCache is turned off.
In the NXP compiler, how is the volatile keyword explained? In addition to turning off DCache or refreshing DCache, is there any other way to synchronize memory data between two? Looking forward to expert guidance, thank you

best regard.

 

yang

Outcomes