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.

CCS5 CG_TOOL_ROOT changed value

I've been using 5.5 to build a 6455 using Code Gen Tools 7.4.5.

Yesterday I noticed that I'm getting a compiler warning about Code Gen mismatch...  I noticed that it is now using Code Gen 7.4.4.

I tracked it down to the value of CG_TOOL_ROOT.  I believe it was previously set to "C:/ti".  Now it is set to "C:/ti/ccsv5/tools/compiler/c6000_7.4.4".

Where does CG_TOOL_ROOT get set at a system level?  I could force it to be set in every project I build, but I have not had to do that in the past...

The only strange thing I've done lately is install the Klockwork plug in...  maybe that changed my CG_TOOL_ROOT value?

thanks,

Brad

  • Brad,

    This variable gets set at build time by the build system based on the compiler the project is configured to use.  In your case the project would be set to use the 7.4.4 compiler and CCS is setting the variable to the root dir of that compiler.

    The codegen mismatch warning is likely coming from the fact that the project is set to use one compiler version but you don't have that exact version installed so it is using the closest match.

    For example if my project were set to 7.2.1 but the only 7.x I had installed was 7.4.4 then it would use that one instead.

    CCSv6 is a little more descriptive in some of these messages.

    If you right click on your project in the project explorer and select properties.  Then go to CCS General in the tree on the left.  Now on the right hand side you will see some high level properties for the project.  There is one for the compiler version (which is what the project is set to use) and then below it there should be one called Effective compiler version.  This is the compiler that the build will actually use based on what it could find.

    Regards,

    John

  • Thanks for the help! That helped me track down the issue.
    7.4.5 was installed in C:\Program Files (x86)\Texas Instruments.
    Code Composer wasn't see it as an option... (It did last week?)
    I uninstalled 7.4.5 and reinstalled it in C:\ti\ccsv5\tools\compiler... and all is good now.
    thanks!
    Brad
  • yes CCS will automatically find compiler installations in a couple locations, one being the /tools/compiler folder of its own installation. You can also point it to a directory and it will try to detect the version that is present there. You can do that from the preferences dialog (Window->Preferences). Type compiler in the filter box on the left. Should just be the one match, select it. Then on the right you can setup discovery paths.