This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28P650DK: CPU1 and CLA bitwise write to same struct issue

Part Number: TMS320F28P650DK

Dear Expert,

As below struct, if CPU1 and CLA do bitwise write operation on this struct(such as CPU1 write to test_1 and CLA write to test_2) at the same time. This will manipulate test_3 value. How to avoid this scenario? Could you provide a guidance on how to handle the struct that shared with CPU1 and CLA?
typedef union
{
    uint32_t flags;
    struct
    {
        uint32_t test_1 : 1;
        uint32_t test_2 : 1;
        uint32_t test_3 : 1;
        uint32_t reserved : 30;
    }bit;
}TESTFLAGS;

 

Best Regards!

Jacob