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/TM4C1290NCPDT: arm compiler installation

Part Number: TM4C1290NCPDT

Tool/software: Code Composer Studio

CCS 7.2.0.00013

Of the 2 projects I am working on, one project uses TI v16.9.6.LTS and the other

project uses TI v16.9.3.LTS. 

I usually start two sessions of CCS to view both project at the same time, though 

I am compiling/debugging only one of the two projects. How do I ensure the correct

ARM compiler is being picked each time?

I have attached the selection of the compiler in the project in one screenshot.

But this is not getting picked in the compiler build option as seen in the other

screen shot.

Thank you,

Priya

  • Priya,

    Setting the compiler version in the project as you have done will cause CCS to use that compiler when it does the build as long as it knows where to find that compiler, otherwise it will use the closest match it can find.

    In the screen capture where you circled the include path I assume the concern is the generic path that looks like C:/ti/ccsv7/compiler/include?

    I would check what include paths you have setup.  For the include path that pulls in the header files that are part of the compiler (so that it matches the runtime library) we setup that path with a macro.  It will be ${CG_TOOL_ROOT}/include.  Then during the build we use the location of the compiler the project is set to use to populate the macro.  The path you have circled does not look correct and may have been modified.  Here is a screen shot of where to go to check the option.

    Which in my case looks like this in the screen you shared:

    Regards,

    John

  •  John,

    I do have these options set up exactly as shown in your screenshots. I have two versions of ARM compilers in the

    C:\ti\ccsv7\tools\compiler directory. How can I ensure the correct one is getting picked?

    Best Regards,

    Priya

  • Priya,

    When you say you have 2 compilers in C:\ccsv7\tools\compiler do you mean they are directly in that directory or in sub-directories like this:

    In this capture you can see that I have both the 16.9.3.LTS and the 18.1.1.LTS ARM compiler installed.

    It worries me that your include path is resolving to C:/ti/ccsv7/tools/compiler/include.  To me that means that the compilers were somehow directly installed in C:/ti/ccsv7/tools/compiler.  If that is the case this means that in reality you only have 1 as the second install would have overwritten most of the files of the first.

    The compilers need to be in separate directories.  

    Assuming you have both compilers installed in their own directory to get CCS then you just need to select the compiler version for CCS to use for each project in the project properties.

    If you somehow have installed both compilers in the same folder you have some clean up to do.

    First delete that folder.  It is messed up.

    Second go to The preferences dialog in CCS.  Then go to Code Composer Studio -> Build -> Compilers.  Click on the Refresh button to update CCSs list of compilers.

    Then go and install the 2 compilers you need.  They need to be in different folders.  If they are installed in the default locations CCS will find them automatically.  if you put them in a custom folder then go back to the dialog above and add the paths to where they are and click refresh.

    Then in each project select the compiler version number to use:

    Regards,

    John

  •   I have the compilers installed correctly. I deleted the compiler folder from the C:\ti\ccsv7\tools\compiler folder and re-installed both compilers here. CCS is still showing only one available option.

    To work around this, I am manually uninstalling and re-installing the ARM compiler between the two projects.

    Not sure how else this can be fixed. I will check the preference menu each time in CCS.

    Thanks,

    Priya

  • Priya,

    Looking at your screen capture they are not installed correctly. You are installing them in the same folder. When you do that you are overwriting the previous one.

    Install them in their own folders.
    put 16.9.4 in C:\ti\ccsv7\tools\compiler\ti-cgt-arm-16.9.4.LTS
    put 16.9.6 in C:\ti\ccsv7\tools\compiler\ti-cgt-arm-16.9.6.LTS
    ...

    Regards,
    John
  • Thanks John, I understand it now.
    Best Regards,
    Priya