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/TMS320F28377S: Unable to include "exclude from build" files in the project using command line.

Part Number: TMS320F28377S
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hi there,

I am using "Release Configuration". In Release configuartion, 3 source files ("F2837xD_CAN.c" "IR_Can.c" "IR_DAC.c") are excluded from the project "Inverter Regulation".

I could able to inlcude these files using CCS GUI. But i am not able include these files using command line. I tried using -ccs.linkfile and also -ccs.copyfile option.

Below the snippet from my batch file

%CCS%\eclipse\eclipsec -noSplash -data C:\Users\workspace_v6_1\ -application com.ti.ccstudio.apps.projectBuild -ccs.projects "Inverter Regulation" -ccs.device TMS320C28XX.TMS320F28377S -ccs.buildType full  -ccs.autoImport -ccs.configuration %CONFIG% -ccs.linkFile "F2837xD_CAN.c" "IR_Can.c" "IR_DAC.c" @dir C:\Users\workspace_v6_1\"Inverter Regulation" @configurations %CONFIG%

Could you please help!

Thanks!

  • Saravanakumar Kandhallu Dwarakan said:
    But i am not able include these files using command line. I tried using -ccs.linkfile and also -ccs.copyfile option.

    It is not possible to re-include source files using the projectBuild command line. The -ccs.linkfile and -ccs.copyfile options are only relevant for projectCreate (create a new project) command, at which time you can specify whether the file is included or excluded in a specific build configuration

  • Ok. So i will make 2 steps. 1st to create project with the files include and 2nd i will build the project.

    How do we include multiple (excluded) source files in the projects using -ccs.linkfile . ie can you share the syntax.

    Appreciate your help. Thanks
  • Take a look at this page for the list of supported options and syntax.

    Note that you will need to create a new project as you will not be able to modify the properties or exclude/include files of the existing project.