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: CCS: specify compiler in projectspec

Other Parts Discussed in Thread: CCSTUDIO, C2000WARE

Tool/software: Code Composer Studio

Hi everyone,

I'm looking to specify the compiler to build my projects. I know how to do this through the GUI, but since I am setting up an automatic build server (which is using command line build), I need some other way to specify the compiler. 

At first glance, this doesn't seem to be part of the project settings? Is there a specific xml file I can edit?

thank you

Nico

  • Nico,

    You mentioned projectspec in the title. Are you using projectspecs? These are really templates that are used to generate projects. i.e. you import a project spec and CCS will then create the full project. It is possible to specify the compiler version in the projectspec and there are command line APIs for then importing/creating the project. However I suspect that you have a full project and just want to build that.

    One approach would be to have different project configurations. Each configuration can specify the compiler version to use. You could then use command line to build specific configurations. processors.wiki.ti.com/.../Create

    If you want to edit the project files the information is stored in the .ccsproject and .cproject files. We generally do not recommend editing these files directly as their formats are not public interfaces and can change between versions. The .cproject is really the one that would have to be changed.

    The filed that contains the version looks like this:
    <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.297475778" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="17.9.0.STS" valueType="string"/>

    However there are a lot of references to using the 17.9 build definitions throughout the file. I tried just changing that filed but then the option to build my project was disabled. So you would have to change all the references. In short I would not recommend doing it this way.

    What sort of compiler change did you want to do? Was it changing from a 16.9.5 LTS to a 16.9.6 LTS or something more substantial? If it was minor then I would expect the first change to be enough as the build definitions themselves would still be ok.

    Regards,
    John
  • Thanks for your quick answer John.

    I am doing quite a major compiler change. (5.2.6 vs. 16.9.1.LTS)

    I am using projectspecs, but they don't seem to have an option to set the compiler?

    I would be fine with different project configurations, but haven't figured out how the project configuration defines the compiler. Where do I append what?

    -Nico
  • Nico,

    I recently added a C2000Ware example to the projectspec wiki.  This one shows how to specify the CGT version.

    processors.wiki.ti.com/.../ProjectSpecs_in_CCS

    For project configurations I was thinking that you would use the GUI to create a new configuration and switch the compiler for that version in the GUI. Then once the configurations existed you could select which one to build from the command line.

    When using the GUI to change the compiler you can select the config at the top of the dialog and then the compiler change you make lower down applies to that config only.

    Regards,

    John