Projects - Command Line Build/Create
From Texas Instruments Embedded Processors Wiki
Contents |
Overview
Code Composer Studio has several terminal commands you can use to create, build, and import information into its projects:
- Create a Project
- Build a Project
- Import an Eclipse Project
- Import a Legacy Project
Prior to using any of these commands, you must first change your working directory to the Code Composer Studio Eclipse folder. For a default Code Composer Studio v4 installation on Windows XP, this command would be something similar to:
cd C:\Program Files\Texas Instruments\CCSv4\eclipse
Note that the below examples are for CCSv4. If you are using CCSv5, see the section below called " Working with CCSv5".
Create a Managed Make Project
Usage:
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device [-options]
Options:
For the full list of options available for you CCS version, run the command with the '-ccs.help' option
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectCreate -ccs.help
Examples:
- Create a C64xx project 'newProject' at default location 'C:\myWorkspace\newProject\', leaving all other arguments at their defaults:
jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectCreate -ccs.name newProject -ccs.device com.ti.ccstudio.deviceModel.C6000.GenericC64xxDevice
- Create a project as above, and also set some extra build-options (note the optional use of wildcard '*' in option-IDs):
jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectCreate -ccs.name newProject -ccs.device com.ti.ccstudio.deviceModel.C6000.GenericC64xxDevice -ccs.setBuildOption com.ti.ccstudio.buildDefinitions.C6000_6.1.compilerID.QUIET_LEVEL com.ti.ccstudio.buildDefinitions.C6000_6.1.compilerID.QUIET_LEVEL.VERBOSE -ccs.setBuildOption com.ti.ccstudio.buildDefinitions.C6000_*.compilerID.DEFINE "DEBUG" -ccs.setBuildOption com.ti.ccstudio.buildDefinitions.*.compilerID.KEEP_ASM true
Create Standard Make Project
NOTE: This option is being deprecated in CCSv5. Run the command for more details.
Usage:
jre\bin\java -jar startup.jar -data "C:\MyWorkspace" -application com.ti.ccstudio.apps.projectCreate_stdMake -ccs.name ProjectName [-options]
Options:
For the full list of options available for you CCS version, run the command with the '-ccs.help' option
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectCreate_stdMake -ccs.help
Example
jre\bin\java -jar startup.jar -data ":\MyWorkspace" -application com.ti.ccstudio.apps.projectCreate_stdMake -ccs.name MyProject -ccs.location C:\MySourceFiles\Location -ccs.buildCommand "${project_loc}/pathToMyMakeUtility/gnumake.exe" -ccs.makefileName "makefile.mak" -ccs.buildTarget ALL -ccs.cleanTarget CLEAN -ccs.overwrite keep
Build a Project
Usage:
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectBuild (-ccs.projects | -ccs.workspace) [-options]
Options:
For the full list of options available for you CCS version, run the command with the '-ccs.help' option
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectBuild -ccs.help
Examples
- Clean the active build-configuration of project 'newProject' without building it:
jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectBuild -ccs.projects newProject -ccs.clean
- Rebuild the 'Debug' build-configuration of project 'newProject':
jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectBuild -ccs.projects newProject -ccs.configuration Debug
- Rebuild the active build-configuration of all projects in the workspace:
jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectBuild -ccs.workspace
Import an existing CCS Eclipse Project
Usage:
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectImport -ccs.location [-options] (See Notation Used)
Options:
For the full list of options available for you CCS version, run the command with the '-ccs.help' option
jre\bin\java -jar startup.jar -data <workspace_path> -application com.ti.ccstudio.apps.projectImport -ccs.help
Working with CCSv5
For CCSv5, the usage for the commands have changed:
- For Windows: Use "eclipsec –noSplash" instead of ".\jre\bin\java –jar startup.jar", followed by the rest of the command.
eclipsec –noSplash -data <workspace_path> -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device [-options]
- For Linux: Use "eclipse –noSplash" instead (similar as Windows, except without the 'c' in the end), followed by the rest of the command.
eclipse –noSplash -data <workspace_path> -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device [-options]
Note that the directory for the eclipse/eclipsec executable is located in <your root ccs install location>\ccsv5\eclipse.
Leave a CommentComments
Comments on Projects - Command Line Build/Create

I've found how to build all configuration : just by calling the CDT headless build, without any reference to ccstudio.apps.projectBuild
Generic command line: C:\ti\ccsv5\eclipse\eclipsec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data <MyWorkspaceFolder> -import <MyProjectFOlder> -build all -cleanBuild all
--Asalmeto 00:20, 9 March 2012 (CST)