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/TMS320F280049C: TMS320F280049C

Part Number: TMS320F280049C

Tool/software: Code Composer Studio

I have included assembly instructions in my CLA code and I am getting the following error message.

"C:\Users\shaddad\AppData\Local\Temp\{3A67ACC4-28FF-4611-9051-A07F84F6F092}", ERROR!   at line 311: [E0000] CLA instructions cannot appear with non-CLA instructions in the same section
   RPT #4 || NOP

I am trying to implement a delay in my CLA code.

    for (index = 0; index < 20; index++)      //10uS delay running @20MHz to
       asm("  RPT #4 || NOP");                    //allow conversion to complete

The code builds adn runs and I can measure the delay on a scope.

Thanks

Steve Haddad

Ametek Aerospace

  • Steve,

    You're getting the error because neither RPT nor NOP is a valid CLA instruction.  The compiler will generate code for the 'for' loop, and it will take some cycles because it's incrementing an integer loop counter which is not very efficient on the CLA, but I don't think it is actually substituting anything for the NOPs.

    If you need a longer delay, what you can to is just inline the MNOP instruction as many times as you need, or use the __mnop intrinsic, in this case five times in a row.

    Regards,

    Richard

  • MNOP did the trip.

    Thanks Richard