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.

CCS: How to get/detect current build configuration



Tool/software: Code Composer Studio

Hi, I would like to use the build configuration to change the pre/post processing on CCS.

 

How do I get the current configuration in use?

I have extra configurations like MY_RELEASE and MY_DEBUG.

Configurations are stored in the .cprojet file but I couldn't find any way to detect which one is being currently used in the build process.

I am also using the -ccs.configure flag to build it from the command line, but I would like to know the current configuration from the GUI too.

I am using this URL as a reference for the command. 

  • Hello,

    Leandro Heck said:

    How do I get the current configuration in use?

    I have extra configurations like MY_RELEASE and MY_DEBUG.

    Configurations are stored in the .cprojet file but I couldn't find any way to detect which one is being currently used in the build process.

    You can see by checking the build configuration drop-down menu (look for the "checkmark") and also looking at the project name when the project is selected in the Project Explorer. In the example below, the active configuration is "Debug"

    Thanks

    ki

  • I mean, I want to add a some comand on "Project Preferences >> CCS Build >> Steps >> Pre-Built Steps" or in "Prost-Build Steps" that is dependent on the active configuration.

    How do I get this value from the makefile? Where it is stored?

    For example I would like to start printing it on the console, like?
    "echo CONFIGURATION"
  • the build variable "ConfigName" will have the active configuration name.

    try adding the below command in the pre/post-build step to print out the value:

    echo ${ConfigName}
  • That works! Thanks Ki!