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.

CCSv6 command line: relative path to link/copy file does not work when creating new project

Other Parts Discussed in Thread: TMS320C6748, TMS320C6678, CCSTUDIO

I am using CCSv6. I need to create new project in CCS from command line. I face issue in using "-ccs.linkfile" feature. It does not take relative path (relative to PROJECT_LOC) as done by GUI.

Currently, i am using absolute path. But going forward i would prefer to keep relative path to files that i add to my project.

Similar issue is seen while using "-ccs.copyFile" feature.

Is this known issue or am i missing something?  

  • Hello,

    You can use a linked resource path variable like PROJECT_LOC with the -ccs.linkfile command:

    -ccs.linkFile "PROJECT_LOC\path\to\my\source.c"

    Thanks

    ki

  • You should be able to do a relative path from the variable too:

    -ccs.linkFile "PROJECT_LOC\..\..\path\to\my\source.c"

  • Yashank,

    What is the exact command line you are using?

    I tried a quick test with CCS 6.0.1 using -ccs.linkFile with path relative to PROJECT_LOC (see the command below) and it worked.

    eclipsec -noSplash -data c:\workspaces\ccs601\c6000_temp_workspace -application com.ti.ccstudio.apps.projectCreate -ccs.linkFile "PROJECT_LOC\..\..\..\ccsv601\c6000_workspace\helloWorld_TMS320C6748\main.c" -ccs.device TMS320C66XX.TMS320C6678 -ccs.name testproject

  • Thank you all for quick response. It worked. 

    I have been using -ccs.linkFile "${PROJECT_LOC}\path\to\source.c" which throws an error.