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.

RE: MSP430FR5969: Access MSP430 memory above 0x10000 + Energia Imported Sketches (which implies use of unsupported MSPGCC 4.6.3)

Other Parts Discussed in Thread: ENERGIA

Original Thread: https://e2e.ti.com/support/microcontrollers/msp430/f/166/p/778142/2910426#2910426

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

Hello Robert,

After installing a clean environment, following your instructions and properly linking all my libs and making the changes needed for my projects to compile, I am having the same error as on my first attempt before your solution (using Energia 17 + GCC 7.3 + CCS 8.2).

I try to compile a smaller code that compiles perfectly on CCS 6.2 + GCC 4.6.3 + Energia 17 and it gives me the same error:

Dwarf Error: Line info data is bigger (0xfffffffc) than the section (0x<varies w/section size>).

Reading the generated .map file, it is trying to generate a HUGE amount of debug data. The size for .debug_info section is much bigger than the whole memory available on chip!

The curious thing is: On the old version that works, this huge amount of debug data also exists on .map file, surely the linker is “being wise enough” to ignore it, I don’t know, I’m not an expert on GCC and LD…

Things I have tried so far: Disable DWARF, uncheck –g option for GCC, replicate the same for linker options. None of these seems to make a difference.

Is there something wrong I am doing or NOT doing that you already know that causes this error?

Thank you so much again for your help!
Mario

  • The debug sections are for programs like gdb and are not mapped or loaded into the target so it doesn't matter that they are bigger than the device memory. I suspect that 0xfffffffc is an error return value.

    Googling on your error message I see where it was generated as one of the errors from a symbol that was defined twice.
    e2e.ti.com/.../504524
  • Robert, thanks for your help. Since now you are checking the problem of non-automatically linked libraries, which seem to be resulting the "Dwarf Error: Line info data is bigger (0xfffffffc) than the section (0x<varies w/section size>)", will be waiting for some conclusion on this.
    Thanks a lot,
    Mario
  • David, also would like to thank you for your answer. In my case I have this error just by #INCLUDE any non-Energia-core library. An empty sketch, for example, compiles without error and error appears just by including some library and instantiating an object from it. This behavior only happens on this upgraded environment (Energia 21 + CCS 8.2 + MSPGCC 8.3). The very same project, only with less calculations and text outputs to lower memory usage, compiles just fine on the original environment (Energia 17+CCS 6.2+MSPGCC 4.6.3), which does not support large memory model. There is no chance for duplicated symbol definition as sketch runs fine on the older environment. Thanks anyway, I tried to find any duplication of definitions just in case I had eventually made something wrong. Unfortunately it wasn't the case. Thanks for your help!
  • <Already answered by Mar 21, 2019>

**Attention** This is a public forum