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.

Assemble Example



I am running in circles trying to do something I thought would be simple.  I want to assemble one of the MSP430 assembler language example programs.  I have been trying to assemble msp430x20x3_1.asm but any similarly simple example will do.  I can find all of the examples from within CCS.  When I try to select a sample to build, only the C language examples appear.  As soon as I select the assembler language tab, the ability to build the example disappears. 

I even downloaded the corresponding C language example and replaced the .c program with the .asm equivalent.  I tried that, because the CCS tutorial says the C compiler will call the assembler if it is given a .asm file as input.

How do I select and build an MSP430 assembler language example in CCS?

Scott

  • Scott,

    I assume you are looking at the TI Resource Explorer where there is the One-click Projects and also tabs for viewing C and Assembly source files. The One-click Projects use only the C sources, but if you want to create a project that uses only the assembler source, you can do the following:

    - Go to menu Project->New CCS Project
    - Fill in the fields and for "Project Templates and examples", select "Empty Assembly-only Project"
    - The project will be created with a main.asm
    - Delete main.asm and copy over the desired .asm file from the examples to the project
    - Build the project