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.

CCS/TMS320F28377D: CLA MIRUN not clearing

Part Number: TMS320F28377D


Tool/software: Code Composer Studio

I am working with CCS8 and have tried the code on a F28379D cCard as well as my own board with a F28377D. I have been struggling for a while to get any CLA code working on my F2837xD device. I have tried several example projects (cla_sqrt, cla_crc8table1), and I have not been able to get the MIRUN bit to clear, so the code will not execute past a line of code such as Cla1ForceTask1andWait().

I have done a good bit of searching on these forums and have not been able to come up with a solution. I have verified that the MIER bit for the targeted task is set, MIRUN for the task goes high, the interrupt executes the PIEACK, but MIRUN does not go low and the CLA task will not get called again.

Any thoughts?

Thanks for the help.

  • In searching around other example projects, I found that these two lines were missing from my code... I am getting the CLA Task to run more than once, but I am not sure why this is the fix. Some input would still be helpful. Thanks!

    MemCfgRegs.LSxMSEL.bit.MSEL_LS4 = 1;
    MemCfgRegs.LSxCLAPGM.bit.CLAPGM_LS4 = 1;
  • Hi Eric,
    The above two statements configures CLA as mater of LS4 RAM and selects LS4 RAM as CLA program memory. If this had not configured earlier the CLA would not have access to LS4 RAM and wont be able to execute instructions from its program memory i.e the CLA tasks.

    Thanks
    Vasudha