Projects - Command Line Build/Create

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Overview

Code Composer Studio has several terminal commands you can use to create, build, and import information into its projects:

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:

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
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

jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectBuild -ccs.projects newProject -ccs.clean
jre\bin\java -jar startup.jar -data "C:\myWorkspace" -application com.ti.ccstudio.apps.projectBuild -ccs.projects newProject -ccs.configuration Debug
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:

eclipsec –noSplash -data <workspace_path> -application com.ti.ccstudio.apps.projectCreate -ccs.name -ccs.device [-options] 
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.

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Projects - Command Line Build/Create here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment

Comments

Comments on Projects - Command Line Build/Create


Asalmeto said ...

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)

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox