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/TMS320F28377S: Force CCS using the defined compiler verison of the project

Part Number: TMS320F28377S

Tool/software: Code Composer Studio

Hi.

If I compile a project on a computer where the compiler which is specified in the CCS project is not installed I get the following warning:

This project was created using a version of compiler that is not currently installed: 15.12.3.LTS [C2000]. Another version of the compiler will be used during build: 16.9.1.LTS. See 'Help > Check for Updates' or visit <a href="liveaction:OpenAppCenter">CCS App Center</a> to get the latest compilers. See 'Help > Install New Software...' to install older compilers. Alternatively, migrate the project to one of the available compiler versions by adjusting project properties.

I want to have an error and stopping of the build process instead. The person who chooses the compiler version (in general this is me) has a good reason to use this special version. So other programmers of this project shall be forced to use it too.

How can I achieve this?

Thanks and best regards

Christian

  • Christian,

    At one point we had it so that if the first part of the compiler version was different we would change it to be an error and stop the build. However when we changed how we did compiler versions for MCU so that the first digit was the year that logic changed.

    Currently I do not know of a way to force the difference to result in an error. Normally we would save that type of setting in the workspace. But in this case that wouldn't be optimal either since the workspace settings are personal preferences and here you want to force this on all users of the project and thus it would have to be something stored in the project itself so that it is checked into revision control.

    I have filed CCDSK-2916 to track this.

    Regards,
    John
  • Christian Fuchs1 said:
    I want to have an error and stopping of the build process instead. The person who chooses the compiler version (in general this is me) has a good reason to use this special version. So other programmers of this project shall be forced to use it too.

    One option could be to add a #error directive to a source file in the project, something like:

    #ifdef __TI_COMPILER_VERSION__
      #if __TI_COMPILER_VERSION__ != 15012003
        #error "Incorrect compiler version, make sure to use version XXX"
      #endif
    #endif

    This would cause the error to be thrown at compile time. 

    Of course, this check is in a source file rather than the CCS project file, and happens at build time not prior to it, but perhaps is a usable workaround for your situation.

  • Hi again.

    Is there also a define for TI/BIOS and XDC tools version?

    Thanks

    BR

    Christian

  • Christian,

    Unfortunately no there is no equivalent for the kernel or xdctools versions.

    Regards,
    John