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.

Anatomy of CLA Code on Piccolo Workshop Workshop Guide (sprt547)



On page E-10 of the sprt547 manual,  the structure PIVars is allocated in CpuToCla1MsgRAM

// File main.c
#include “CLAShared.h”

#pragma DATA_SECTION(PIVars,"CpuToCla1MsgRAM");
struct PI_CTRL PIVars;

However, on the following page, variable PIVars.I is being written by the CLA task 2. Aren't writes to CpuToCla1MsgRAM by the CLA ignored? What would be a better way to accomplishthe intended assignment to PIVars.I?

; File: cla.asm

_Cla1Task2:
MDEBUGSTOP ; breakpoint
..
; Write to memory or register
MMOV32 @_PIVars.I, MR3
MMOV32 @_EPwm1Regs.CMPA.all, MR2
..
; End of task
MSTOP