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/TMS320F28035: CLA Task Loaded from Flash isn't runing

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hello, 

I'm trying to run the CLA task 8 every time ADC conversions from ADCINT1 to ADCINT8 take place, in order to do so, I'm using the SOCPRIORITY register to make SOC0 to SOC8 'High Priority' and using the same trigger from the EPWM to trigger all the conversions. Finally, I configured the ADCINT8 as a trigger to task 8 in the CLA and placed a GPIO11 toggle in the cla_isr8 to test the code. So far the conversions are taking place, and the cla_isr8 is been served (since the GPIO11 is toggling), however, it looks like the CLA isn't running at all since the counter I placed in task 8 isn't changing. I've seen almost every example in C2000ware referring to this topic, but no success so far. I suspect the problem comes when assigning the CLA memory in the linker command file. Could someone please give me some advice? 

I'm attaching the project down below  

Thank you in advance

  • Daniel,

    A few things to check:

    • Confirm the memory where the variable lives is write accessible by the CLA.  Refer to this FAQ: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/787673
    • If you want both the C28x and the CLA to see the counter, refer to this FAQ for sharing information between the C28x and the CLA https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/795553
    • Check the linker-generated map file to see where the linker placed the counter in memory.  Confirm this is where you expected and that the CLA has write access to the memory.
    • If only the CLA can read the variable (i.e. it is not shared with the C28x) then make sure to select the CLA processor in the Debug window before viewing the counter.
    • Set a breakpoint in the CLA task 8 and step through the code to debug.  You can view the memory location for the counter in the memory window as well as the counter variable in the watch window. 

    For futher guidence, the CLA hands-on-workshop is very good at describing the CLA, how to develop code for it, and also how to debug it in Code Composer Studio. I think you will find it helpful. Here is the link to the workshop:

    Click here for more CLA FAQs and resources.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button.