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/LAUNCHXL-F280049C: How Can I Declare Variables Assemby On CLA

Part Number: LAUNCHXL-F280049C


Tool/software: Code Composer Studio

Hello,

   Can I declare variables  in assembly? 

   I am writing CLA code in assembly? I can,t declare variables by .def and .gloable. 

But ,  it works in the flow example。Why?

  • You cannot place the "." on the first column of an assembly file.  It's the same for files intended to run on the main CPU.

    Move the ".def" and ".global" to the right by placing any white-space character in front of them and it will be fine.

    Regards,

    Richard