Tool/software:
Hi,
I have application that I want to send and receive message between CPU1 and CM.
My application is work correctly but I have a problem relating the read and write to a variable that is assign to a section let's say CMTOCPU1 section , if I want to write to that variable from CPU1, is it possible?
Because now when I'm trying to write to that variable from CPU1, that variable stay the same and does not get updated.
I attached the variable here which is the same for both CM and CPU1:
My goal is to avoid race condition and also I don't miss any data from CM if CM was faster than CPU1. For this purpose, when a data[i] is change in my structure in CM, I assign the detec_chang[i] to 1 in CM and I want the detec_change[i] get zero by CPU1 after CPU1 read the data[i].