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.

TMS320F28377D: CLA Shared data (variables)

Part Number: TMS320F28377D

Hi,

I am relatively new to the CLA but starting to catch the hang of it.

As of now, I am running the CLA in parallel to the CPU and able to handle peripheral interrupts with the CLA tasks.

While the CLA handle the real time critical tasks, the CPU will handle all the background operation such as updating control parameters, communications, etc.

My question is regarding shared data between the CPU and CLA, lets assume one of my background tasks (CPU) is updating my PI controller's gain, this gain is defined in the  "CpuToCla1MsgRAM" because I want the CLA to operate based on the updated parameters. 

What would happen if the CLA will try to access this variable right when the CPU is updating it to a new value? can this cause the CLA to receive "garbage" data? If so, what's the solution for that?

Thanks in advance.