Part Number: TMS320F28384D
Hi, in my project I'm using both CPU1TOCMMSGRAM and CMTOCPU1MSGRAM to share data between CPU1 and CM. At any moment one core should be able to read any data from the shared memory owned by the other one (i'm not using the message-based API exposed by driverlib). This is working fine, but I was having some doubts about data access concurrency.
My two questions are:
- Is there any kind of IPC lock, like a mutex, that blocks the other core from reading data while the owner core is writing it? Even a "global" lock could be useful in my case
- If the above does not exist, and since i'm sharing only 16-32 bit values, is the store of these values atomic for both CPU architectures? I.e, can I read a 32bit value from one side, while is the other is updating it, without reading garbage?
Thank you for your answers in advance