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/MSP430G2755: Compiler warning "near_data is only applicable for large data models". CCS GUI does not allow NULL selection.

Part Number: MSP430G2755
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

I have an older project that used CCS 5.5. That project was using an older compiler (4.2 I think). Anyway, apparently it had the "Processor Options" "Indicates what data must be near" set to "Globals". The code and data models are set to to small. CCS 5.5 did not complain about this configuration.

However, after I imported the project into CCS 7.1.0 and changed the compiler to 16.9.2LTS, I get the following warning 14 times:

--------------------------------------------

--near_data is only applicable for large data models. Option ignored. --near_data is only applicable for large data models. Option ignored.
--------------------------------------------

I went into the "Processor Properties" and changed the value to "None". I cleaned the project and rebuilt. There are still 14 warnings. The following line is in the .cproject file:

--------------------------------------------

<option id="com.ti.ccstudio.buildDefinitions.MSP430_16.9.compilerID.NEAR_DATA.1843743052" name="Indicates what data must be near (--near_data)" superClass="com.ti.ccstudio.buildDefinitions.MSP430_16.9.compilerID.NEAR_DATA" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.MSP430_16.9.compilerID.NEAR_DATA.none" valueType="enumerated"/>

--------------------------------------------

The drop-down list box provides 3 choices: blank, globals, none. When I select the blank entry (which I figured would be "unselected" or "NULL"), the selection just jumps to "globals".

So, this seems like a bug in the CCS GUI. It should allow a blank (NULL) selection and then remove the XML line from .cproject.

Aside from reporting this bug, I would like to know if it is safe for me to remove the offending line from the XML file. I am hesitant to alter it in any way.

Regards,

Jim

  • Jim Cook said:
    I have an older project that used CCS 5.5. That project was using an older compiler (4.2 I think). Anyway, apparently it had the "Processor Options" "Indicates what data must be near" set to "Globals". The code and data models are set to to small. CCS 5.5 did not complain about this configuration.

    Jim,

    I created a new project in CCS 5.5 with this configuration (code and data models set to small and "Indicates what data must be near" set to "Globals") and the warning was generated at build time even with the 4.2.1 compiler. The warning however only appears in the build console (see the highlighted lines below) and not the Problems view (likely a IDE bug), so it was probably misleading and appeared as though there was no warning. The compiler behavior itself seems to be consistent between the 4.2.x and newer versions.

    Could you check if this was the case in your environment?


    Jim Cook said:
    The drop-down list box provides 3 choices: blank, globals, none. When I select the blank entry (which I figured would be "unselected" or "NULL"), the selection just jumps to "globals".

    I can reproduce this in CCS 7.1. If I select the blank option it jumps to global. So this is a bug in the GUI and I will file a bug report for this.

    However, the blank option actually did get set correctly in my case and I was able to build without the warning, and also confirmed that the option was no longer there in the build output. 

    Did you try a rebuild after setting the option to blank? Let us know if it still continues to generate the warning. We may then need to take a look at your project files.

  • AartiG said:
    I can reproduce this in CCS 7.1. If I select the blank option it jumps to global. So this is a bug in the GUI and I will file a bug report for this.

    Tracking # for this issue is CCSIDE-3127.

  • Hi AartiG,

    >> I can reproduce this in CCS 7.1. If I select the blank option it jumps to global.
    >> So this is a bug in the GUI and I will file a bug report for this.

    >>However, the blank option actually did get set correctly in my case and I
    >> was able to build without the warning, and also confirmed that the
    >> option was no longer there in the build output.

    I have moved onto another project now.

    I do not recall if I actually tried to compile after selecting the blank line in the properties. I tried "Globals" & "None" which produced the error. It is quite possible that when I selected the blank line in the drop-down and it jumped to the "Globals" selection that I assumed "Globals" was selected and that the blank line was NOT an allowable choice.

    Next time I am working on that project, I will try again, selecting "blank-line", let it jump to "Globals", then compile anyway.

    Jim