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.

CCSv4 CGT upgrading from v4.3.5 to v4.3.7

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I have a project which has some compilation and linking warnings and I wanted to see if upgrading CGT to latest one would help to make them go away.

After installing v4.3.7 (downloaded from TI CGT site, not from Help - Software Updatdes ), I changed

a. "Build Properties - CCS Build - TI v4.3.7".

b. "Build Properties - C/C++ Build - Macros - C5500_CG_ROOT" to the directory that CGT v4.3.7 locates.

Then I re-built my project and got the following error messages:

Project build options do not match Global configuration settings. Compiler options specify small model, configuration set for large model

I un-installed v4.3.7, re-installed v.4.3.5, changed back those settings in "Build Properties" and re-started CCSv4 (4.1.2.00027), the error messages still remain.

"Runtime Model Options" is set to "large" for memory model in my project, my questions are:

1. How to modify memory model to "large" in "Global configuration settings" ? Is "Compiler options" referring to my project setting ?

2. Are there any additional settings besides "a" and "b" when CGT is upgraded ?

Thanks,

Yuhua

  • Yuhua,

    When CGT is upgraded, all you need to do is change the version of compiler in Build Properties->CCS Build->Code Generation Tools. CCS will take care of automatically adjusting the path.

    The errors seem to point to a mis-match in the memory model option. Could you check your project settings and build options (including file specific options) and any libraries that are included in the project to make sure that the are all of the same memory model?

  • Hi, Aarti,

    Thanks for your reply.

    I have my project saved before upgrading CGT to v4.3.7, so I am able to compare the differences between working and non-working projects, I found that in file .cdtbuild, the non-working one has the following setting:

    <option id="com.ti.ccstudio.buildDefinitions.C5500_4.3.compilerID.MEMORY_MODEL.1156436349" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.3.compilerID.MEMORY_MODEL" value="com.ti.ccstudio.buildDefinitions.C5500_4.3.compilerID.MEMORY_MODEL.small" valueType="enumerated"/>

    the memory model is set to "small", I didn't intentionally set it, what this "option" refers to ? in Build Properties or other places, from the information above, it is not clear where to change this option ? In Build Properties - C/C++ Build - Tool Settings - C5500 Compiler - Runtime Model Options, "Use Large memory model" is checked, so it is not this one.

    Yuhua

  • Hello Aarti,

    I found what this option refers to, it is "Specify memory model" in "Runtime Model Options". Not sure the difference between "Use Large memory model" and "Specify memory model - large". I changed "Specifiy memory model" from "small" to "large", my project built.

    Then I installed CGT v4.3.7, as suggested, I only changed "Build Properties->CCS Build->Code Generation Tools" to "TI v4.3.7". With the same project files used earlier (memory model is changed to large), I still got the error messages about small memory model, it looks that this setting gets modified when CGT is upgraded. 

    Yuhua

  • Yuhua,

    This comes from the --memory_model option under Build Properties->C/C++ Build->Compiler->Runtime Model Options->Specify Memory Model(--memory_model). Note that you may have different ones for Debug and Release configurations, check what they are for both in the .cdtbuild file.

    For instance, the settings under this line apply to the Debug configuration:

    <configuration artifactExtension="out" artifactName="test_c55" description="" id="com.ti.ccstudio.buildDefinitions.C5500.Debug.334491862" name="Debug" parent="com.ti.ccstudio.buildDefinitions.C5500.Debug">

    And there would be something similar for Release configuration.

     

  • FYI,

    When you switch to v4.3.7 from "Build Properties - CCS Build - Code Generation tools", you will see a window below. Selecting "Create a new build configuration initialized with build options from the existing configuration" doesn't necessarily get the existing configurations, this is what happened in my case.

  • Yuhua,

    I am not able to duplicate your behavior where "Creating a new build configuration initialized with build options from the existing configuration" does not preserve the original configuration settings. Maybe the confusion was partly due to the 2 options displayed in CCS : --large_memory_model and --memory_model.

    Based on the response provided by Paul in this post, I will put in a request that CCS no longer display the --large_memory_model check box option. This should help avoid confusion on what the 2 sets of options (--large_memory_model and --memory_model) mean.