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.

Add post build to Code Composer Studio project in headless mode

Other Parts Discussed in Thread: CCSTUDIO

I try to set a post build step for Code Composer Studio 6.1.2 like in the GUI for my headless mode (running with batch script).

I checked TI command line (at TiWiki) but I didn't find anything about post build steps. My post build step is a batch file which generates a binary file from .out file.

@echo off
set CURR_DIR=%~dp0

C:\ti\ccsv6\eclipse\eclipsec -noSplash -data "C:\Test\workspace" -application com.ti.ccstudio.apps.projectImport -ccs.autoImportReferencedProjects -css.referencedProjectSearchDirectory -ccs.location %CURR_DIR%\Sitara\SysBiosAppl > log.txt
C:\ti\ccsv6\eclipse\eclipsec -noSplash -data "C:\Test\workspace" -application com.ti.ccstudio

Is there any possibility to add/run a post build step in batch mode?

I am thankful for any help :)

  • Hi,

    Unfortunately there is currently no support to add project options to an existing project form the command line.

    If you want to include this option when creating a project, issue the help command for the com.ti.ccstudio.apps.projectCreate application id and check the -ccs.setPostBuildStep command listed there:

    command line said:

    C:\ti\ccsv6\eclipse>eclipsec -noSplash -data C:\Users\user\workspace_v6_1 -application com.ti.ccstudio.apps.projectCreate -ccs.help
    (...)
            -ccs.setPostBuildStep "<command>" [@configurations [<name> ]+]
                    Command to be used as a post-build step (optional)
                    (use backslash '\' to escape all double-quotes in <command>).
                    Optionally, specify a list of build-configurations in which this
     build-step is to be set.
    (...)

    Therefore you can pass the parameter as indicated above. For example, if you want to pass the traditional post build step to create a binary file, you would add the following to your project creation command:
    command line said:
    C:\ti\ccsv6\eclipse>eclipsec -noSplash -data C:\Users\user\workspace_v6_1 -application com.ti.ccstudio.apps.projectCreate -ccs.name "my_proj" (insert other options here...) -ccs.setPostBuildStep "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin ${CG_TOOL_ROOT}/bin/armofd ${CG_TOOL_ROOT}/bin/armhex ${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"
    Regards,
    Rafael