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.

Assembler for TMS320C5535 eZdsp Kit

Other Parts Discussed in Thread: TMS320C5535

I need to write a short assembly language program for my TMS320C5535 eZdsp Kit.  Can I get the CCS version 4 that came with the kit to compile an assembly language program for me?  If not, what can I do to write TMS320C5535 machine code.

Thanks,

Sheldon

  • Hi Sheldon,

    You should be able to write an assembly routine using  CCSv6. You can generate assembly code from your C code by ensuring that the -k option is chosen under Properties>Build>C5500 Compiler>Advanced Options>Assembler Options and check the "Keep generated assembly language file" option. This will create a .asm file in your Debug folder.

    Please also take a look at these documents for guidance on naming conventions, etc:

    Link1
    Link2
    Link3 

    Lali

  • Lali,

    Thank you for your reply.  I am, however, using the CCSv4 which came with the eZdsp kit.  Will what you suggested also work here?  I don't want to use CCSv6 because it will not, apparently, run the example programs that came with eZdsp kit.

    Additionally, is there a way to avoid using 'C' altogether?  I'd prefer to have a pure assembly language program.

    Regards,

    Sheldon

  • Actually, I just realized that I can do 'inline' assembly language commands using CCS4...so I think I'm good. Mixing in assembly language code with the C-code with the included eZdsp kits example programs should be all I need.

    Sheldon
  • Yes, the C55x compiler toolset includes a complete assembler. You invoke the assembler through cl55, just as if it were a C program.

    Be wary of using inline assembly statements; if you put them inside a C function, the compiler may still do C bookkeeping, such as saving and restoring registers. If you put them outside a C function, you might just as well write an actual assembly source code file.
  • My current problem is that I do not know how to create an ASM file when using CCSv4. I will continue to use the inline assembly statements until I can figure out how to get the CCSv4 (that came with my eZdsp kit working) to create and compile an ASM file.