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