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.

Specifying tool discovery path using command line build for CCS projects

Expert 4920 points
Other Parts Discussed in Thread: CCSTUDIO

Hello,

We are using a command line script to import and build a set of existing CCS projects for CCS v4.2.1. 

Here's the 2 main lines from the script where this happens.

system("\"$ENV{'CCS4_DIR'}\\jre\\bin\\java\" -jar \"$ENV{'CCS4_DIR'}\\startup.jar\"  -data \"$ENV{'WORKSPACE_DIR'}\" -ccs.location $pjtDir/$pjtName -ccs.projects $pjtName -application com.ti.ccstudio.apps.projectImport -ccs.overwrite"); 

system("\"$ENV{'CCS4_DIR'}\\jre\\bin\\java\" -jar \"$ENV{'CCS4_DIR'}\\startup.jar\" -data \"$ENV{'WORKSPACE_DIR'}\" -application com.ti.ccstudio.apps.projectBuild -ccs.projects $pjtName -ccs.configuration Release");

Note that the WORKSPACE_DIR variable is created in the script, so it's a new CCS workspace.

All software components/tools like BIOS, CE, FC, etc. are installed in the directory C:/ti; for example, C:/ti/bios_6_30_03_46.

Typically when we have a new workspace, we manually go to "CCS->Window->Preferences->CCS->RTSC->Products" and "Add" C:/ti to "Tool discovery path:" 

Is there any command line option that we can specify that does the same thing?

Thanks!