Hi all,
I am trying to implement a task in CLA.
I have taken a global variable and incrementing it while watching it in watch window.
Code is shown below
And dis assembly is shown below
But it seems that neither the variable is updated nor incremented its value remains 0 only.
The variable is taken globally in CLA (I tried taking it locally also)
Cla clock is turned on
CpuSysRegs.PCLKCR0.bit.CLA1 = 1;
Memory allocation is as mentioned below
//
// Select LS5RAM to be the programming space for the CLA
// First configure the CLA to be the master for LS5 and then
// set the space to be a program block
//
MemCfgRegs.LSxMSEL.bit.MSEL_LS5 = 1;
MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS5 = 1;
//
// Next configure LS0RAM and LS1RAM as data spaces for the CLA
// First configure the CLA to be the master for LS0(1) and then
// set the spaces to be code blocks
//
MemCfgRegs.LSxMSEL.bit.MSEL_LS0 = 1;
MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS0 = 0;
MemCfgRegs.LSxMSEL.bit.MSEL_LS1 = 1;
MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS1 = 0;
one more thing when i connect CLA with jtag tool it looks like this
Can you please tell me what am I missing?


