Hello,
I'm having a problem compiling a program for a tmote sky (featuring the
MSP430F1611). I have the following error:
/opt/msp430-gcc-4.4.5/lib/gcc/msp430/4.4.5/../../../../msp430/bin/ld:
tmote-sky.elf section `.text' will not fit in region `text'
/opt/msp430-gcc-4.4.5/lib/gcc/msp430/4.4.5/../../../../msp430/bin/ld: section
.vectors loaded at [000000000000ffe0,000000000000ffff] overlaps section .text
loaded at [000000000000fc00,000000000001015d]
/opt/msp430-gcc-4.4.5/lib/gcc/msp430/4.4.5/../../../../msp430/bin/ld: region
`text' overflowed by 382 bytes
I clearly haven't reach the uC memory capacity. Why is there no room for
the remaining 382B? What would be a solution?
Thanks a lot!
Adam.
Memory Overlap problem
Started by ●August 24, 2011
Reply by ●August 25, 20112011-08-25
At the end of your link map, look at all the sections, it will tell you
the size of each. That will help you see where or what overflowed it.
the size of each. That will help you see where or what overflowed it.
Reply by ●August 25, 20112011-08-25
If that error is suggesting that your text section starts at address 0xFC00 then
is it possible that the sections are defined incorrectly?
Maybe you have used the wrong processor variant in your linker options, or maybe the one you have used is unknown?
Alternatively you might have a large amount of constant data that has push the text section that far up through memory?
Maybe you have used the wrong processor variant in your linker options, or maybe the one you have used is unknown?
Alternatively you might have a large amount of constant data that has push the text section that far up through memory?
Reply by ●August 26, 20112011-08-26