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.

TMS320F280049C: Variables in CLA debug

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Hi C2K experts,

I have a struct variable in local shared memory.:

typedef struct {
// Inputs
float32 Ref;
float32 Fdbk;

// Internal values
float32 Errn;
float32 Errn1;
float32 Errn2;

// Output values
float32 Out;
float32 Out1;
float32 Out2;
float32 OutPresat;
} CNTL_2P2Z_CLA_C_Vars;

In .cmd file:

CommonDataRAM    : > RAMLS2,           PAGE = 0

In CLA init.c

MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS2 = 0U;

MemCfgRegs.LSxMSEL.bit.MSEL_LS2 = 1U;

in cla_task.c

#pragma DATA_SECTION(vloop_vars, "CommonDataRAM");
volatile CNTL_2P2Z_CLA_C_Vars vloop_vars;

__interrupt void Cla1Task1(void)
{
       __mdebugstop();

       vloop_vars.Ref = 100;
       vloop_vars.Fdbk = 92;

        normal_routine();

}

However, I saw both of these two variables are 0 in CLA, but correct value in C28.

I don't know if it is normal ?? Or how should I get correct value in CLA ?

C28:

Thanks,