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.

How create preprocessor variable in CCSv5?

Other Parts Discussed in Thread: AM1808, OMAPL138

 

In the C6748 Starterware file edma.h there is the following line of code:

    #if defined(am1808) || defined(omapl138) || defined(c6748)

When I build one of the examples I see the following in the Console window:

'Building target: mcaspPlayBk.out'
'Invoking: C6000 Linker'
"C:/ti/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6740 -g --define=c6748

 

I am creating a new project from scratch and I can't figure out how to create a preprocessor  variable such as "c6748" in Code Composer Studio v5.

  • Joseph,

    You can do this from the build options.  Right click on your project and select properties.  The exact location in the options varies by the compiler version.  Below is where it is for my MSP compiler but for C6000 the name of the group would be the same but is likely not under advanced.

     

    Regards,

    John