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/TMS320F28379D: 28379D CLA DEBUG

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi,

I have some questions about cla on 2837xD, which is as follow:

1\ What are differences between Cla1Taks1 and cla1Isr1?

2\If I want to debug cla and c28x and use single step in cla program , _mdebugstop() must be set in the first line in cla ? When using single step on cla , the cla task be inserted only once, then the pointer stop on the last line, because } means _mdebugstop() at the end .But I want to enter the cla program many times , how to do it ?

3\_mdebugstop() only be used in the debug environment? if the cla program is continously running or download to the chip flash, _mdebugstop() should be commeted?  

4\In the project ,the sources include .cla file and other files.If only connect to c28x cpu and load program ,the result is that cpu and cla program are automatically loaded into each chip. Or cla progam  only can be used to connect cla2 ,then load symbol ?

5\The current loop control is implemented only the cla on the motor control, and include SVpwm , FOC, current sense ,update EPWM CMP and so on. This solution is feasible? If it is ok, Maybe I need to build some task to implement the current loop?

I hope my expression is clear.

  • Hi RICHIE,

    1) CLATask1 is the program that the CLA will execute when it is triggered. cla1isr1 is the interrupt service routine which is executed by the C28x and triggered once Task 1 on the CLA is complete.

    2) MDEBUGSTOP does not have to be the first opcode executed. It can be placed anywhere before the MSTOP or end of task instruction. I am not sure what your question here is? Once the CLA is halted on the MDEBUSTOP, you can singe step the CLA.

    3) There is not need to comment the MDEBUGSTOP. If the emulator is not connected, then the MDEBUGSTOP will be treated as a NOP by the CLA.

    4) The .cla files contain CLA code. When the CCS project is built, the compiler builds the .cla code for the CLA instruction set. After building the CCS project and creating a .out, CCS will load the .out containing the C28x code and the CLA code to the device. After connecting the CLA, you can Add Symbols to see where the CLA is halted on a MDEBUGSTOP.

    5) As long as the CLA has access to all the peripherals you need to access, the it is feasible.

    Hope this help.
    sal
  • Pezzino,Thank you for your rapid reply.

    No.2 question . If i want to enter the cla task1 many times ,I am confused how to do it. I saw some answers on the forum about debuging the cla program only once ,because the cla program will not be excuted and stop at the end of last line. At the same time ,error happens as follows:

    CPU2_CLA1: Can't Run Target CPU: (Error -2060 @ 0x0) Requested operation cannot be done while device is running. Halt the device, and retry the operation.

    need your help.
  • Richie,

    I am a little confused by the question.

    Each CLA task can be triggered multiple times. It is a task driven or event driven accelerator. After completing its task, it may receive another trigger to begin execution again.

    Please see the cla examples and also the cla math library examples in C2000Ware.

    Regards,
    sal
  • Sal,
    Thank you for your answers . The concept is very clear for me. Then I will try some examples to verify the cla task .