3.2 / MSP430F149 .. link objects fails

nobody wrote on Thursday, July 21, 2005:

Hi,
I made a port for MSP430F149, it worked fine with 2.6.
Made all the required changes, msp430-gcc 3.2.3 (linux) compiler works fine without any warning.
But it is no longer possible to link my objects together.
msp430-ld is telling me:

msp430-ld: address 0xa04 of a.out section .bss is not within region data
msp430-ld: address 0xa04 of a.out section .noinit is not within region data
msp430-ld: link errors found, deleting executable `a.out’

Full invocation line and output with -t -v switch is attached.

Any idea where to search?

Thanks
              Peter

Demo/msp430F149> msp430-gcc main.o RTOS/ParTest.o RTOS/serial.o RTOS/Tasks.o Tools/Globals/Init_Globale_Variablen.o Tools/Allgemeines/Allgemeine_Funktionen.o Tools/TLCD/TLCD_Funktionen.o Tools/TLCD/TLCD_Menues.o Tools/GLCD/GLCD_Funktionen.o Tools/GLCD/GLCD_Menues.o Tools/Timer/Timer.o Tools/Waschprogramm/Waschprogramm.o Tools/ADC/ADC.o Tools/RS232/RS232.o …/…/Source/tasks.o …/…/Source/list.o …/…/Source/queue.o …/…/Source/portable/MemMang/heap_1.o …/…/Source/portable/GCC/MSP430F149/port.o …/Common/Minimal/flash.o …/Common/Minimal/integer.o …/Common/Minimal/comtest.o …/Common/Minimal/PollQ.o -mmcu=msp430x149 -Os -g -I. -I…/…/Source/include -I…/Common/include -DGCC_MSP430F149 -Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -t -v
Reading specs from /usr/local/msp430/lib/gcc-lib/msp430/3.2.3/specs
Configured with: ./configure --prefix=/usr/local/msp430 --target=msp430
Thread model: single
gcc version 3.2.3
msp430-ld -m msp430x149 -t /usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib/crt430x149.o -L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2 -L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3 -L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib/msp2 -L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib main.o RTOS/ParTest.o RTOS/serial.o RTOS/Tasks.o Tools/Globals/Init_Globale_Variablen.o Tools/Allgemeines/Allgemeine_Funktionen.o Tools/TLCD/TLCD_Funktionen.o Tools/TLCD/TLCD_Menues.o Tools/GLCD/GLCD_Funktionen.o Tools/GLCD/GLCD_Menues.o Tools/Timer/Timer.o Tools/Waschprogramm/Waschprogramm.o Tools/ADC/ADC.o Tools/RS232/RS232.o …/…/Source/tasks.o …/…/Source/list.o …/…/Source/queue.o …/…/Source/portable/MemMang/heap_1.o …/…/Source/portable/GCC/MSP430F149/port.o …/Common/Minimal/flash.o …/Common/Minimal/integer.o …/Common/Minimal/comtest.o …/Common/Minimal/PollQ.o -lgcc -lc -lgcc
msp430-ld: mode msp430x149
/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib/crt430x149.o
main.o
RTOS/ParTest.o
RTOS/serial.o
RTOS/Tasks.o
Tools/Globals/Init_Globale_Variablen.o
Tools/Allgemeines/Allgemeine_Funktionen.o
Tools/TLCD/TLCD_Funktionen.o
Tools/TLCD/TLCD_Menues.o
Tools/GLCD/GLCD_Funktionen.o
Tools/GLCD/GLCD_Menues.o
Tools/Timer/Timer.o
Tools/Waschprogramm/Waschprogramm.o
Tools/ADC/ADC.o
Tools/RS232/RS232.o
…/…/Source/tasks.o
…/…/Source/list.o
…/…/Source/queue.o
…/…/Source/portable/MemMang/heap_1.o
…/…/Source/portable/GCC/MSP430F149/port.o
…/Common/Minimal/flash.o
…/Common/Minimal/integer.o
…/Common/Minimal/comtest.o
…/Common/Minimal/PollQ.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a)__stop_progExec__.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a)_udivmodqi4.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a)_udivmodhi4.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a)_udivmodsi4.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a)_divmodsi4.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a)_reset_vector__.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib/msp2/libc.a)strncpy.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib/msp2/libc.a)memcpy.o
(/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/…/…/…/…/msp430/lib/msp2/libc.a)memset.o
msp430-ld: address 0xa04 of a.out section .bss is not within region data
msp430-ld: address 0xa04 of a.out section .noinit is not within region data
msp430-ld: link errors found, deleting executable `a.out’
Demo/msp430F149>

rtel wrote on Friday, July 22, 2005:

Not sure why this would be.  The size of the sections should not change much between versions.  It seems you have done a complete rebuild of everything?

If you could send me your project as a zip file, including the makefile etc., I could give it a try here.  I only have Win32 however so it would not be a direct replication.

If you want to send me a zip file send it to the address on the contacts page of the FreeRTOS WEB site (r dot barry at free…).

Regards.

nobody wrote on Friday, July 22, 2005:

Hi,
it works if configTOTAL_HEAP_SIZE <= 1794
I’m still testing if that has side effects

Peter

#define configTOTAL_HEAP_SIZE  ( ( size_t ) ( 1794 ) )