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.

MSPMATHLIB and warning: creating output section ".data" without a SECTIONS specification

Other Parts Discussed in Thread: MSPMATHLIB, MSP430F6638

Hi forum users,

in my project I want to use the MSPMATHLIB and I followed the user guide SLAU499. I've "built" it without errors but I get a warning after linking which makes me uncomfortable because I cannot understand it.

warning: creating output section ".data" without a SECTIONS specification

Please could you give me an idea about this matter? Is this about SECTIONS in the memory map? How can I solve this?

I really thank you in advance for your help,

Stratos

P.S: the MCU is MSP430F6638 and the platform is the CCS4.

  • Efstratios Petrou said:
    warning: creating output section ".data" without a SECTIONS specification

    This means the linker may have placed the .data section in the wrong location in memory, which could cause a crash - see Should linker warning #10247-D really be an error for more information.

    To resolve this you need to add the .data section to the linker command .cmd file in the project as:

    SECTIONS
    {
        .bss : {} > RAM /* GLOBAL & STATIC VARS */
        .data : {} > RAM /* GLOBAL & STATIC VARS */
        .sysmem : {} > RAM /* DYNAMIC MEMORY ALLOCATION AREA */
        .stack : {} > RAM (HIGH) /* SOFTWARE SYSTEM STACK */

**Attention** This is a public forum