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 ASM program

Part Number: TMS320F28377D

Tool/software: Code Composer Studio

_Cla1Task1:

MMOV32 MR0, @_Iq_Out

MMOV32 MR1, @_E0Cos

MMPYF32 MR0, MR0, MR1

MMOV32 @_IApha, MR0

_Cla1T1End:

_Cla1Task1:

 MNOP

 MNOP

 MNOP

_Cla1T2End:

For example, the above program, how does the compiler recognize the end of the CLA task in assembler file?Does the compiler automatically recognize the statement “_Cla1T1End” as the end of CLA Task 1 without the need to make statement of “_Cla1T1End” in the C program? If I need to make a declaration in C program, how do I make it?

  • Hi,

    I do not think you actually need the _Cla1T1End: symbols. You don't actually need the symbol for the end of a task.

    The two most important things are this:
    1) Where does each tasks vector begin? This is determined by your _Cla1Task1: symbol.
    2) How large is the CLA Program memory section that needs to get loaded or copied to LS RAM.

    Therefore, the end of the individual task code is not important.

    Above, I see though that you are missing an MSTOP. You need an MSTOP to tell the CLA that the task is complete.

    Hope this helps,
    sal