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/TMS320C6655: Where is TMS320C6400 defined

Part Number: TMS320C6655

Tool/software: Code Composer Studio

We have a project that the device selection is Family:C6000, Variant: TMS320c6655. It's found that both predefine symbols _TMS320C6600 and _TMS320C6400 are defined for the project. I assume that _TMS320C6600 is defined by the device selection TMS320c6655.  Is _TMS320C6400 also defined when c66xx device is select?

  • When you select c6655 as the device it does set some default build options.   When I look at the file that controls I don't see any -D or --define options being set.

    I created a new project from scratch and I don't see those symbols being defined.  Thus they are being explicitly added by something.

    You can check what is being defined by the project by going to the project options here: (this is for an ARM device but the option is in the same location on C6000)

    Could also be a header file that is defining those symbols.

    Regards,

    John

  • JohnS said:
    When you select c6655 as the device it does set some default build options.   When I look at the file that controls I don't see any -D or --define options being set.

    With CCS 8 created a new project for a TMS320C6655 using compiler TI v8.2.3. The C/C++ General -> Paths and Symbols shows the following built-in symbols related to the device type being defined by the compiler:

    I think the above pre-defined compiler symbols are a result of the -mv6600 compiler option.

  • Hello!

    That's not only expected, but documented behaviour. Refer C6000 compiler user guide, section 2.6.1 Predefined Macro Names. Particularly, it tells

    _TMS320C6400 Defined if target is C6400, C6400+, C6740, or C6600