[En-Nut-Discussion] Unable to build appload code

Lloyd Bailey lbailey at pharmanord.com
Wed Feb 8 17:05:24 CET 2006


Hi All,

I am unable to build the appload code with the -Ttext=0x1f000
appload.elf section .text is not within region text

If I change the -Ttext value so that the code builds the tftp server
keeps restarting after donwloading the bin file. The original tftp
server (appload.hex) works fine.

Regards,

Lloyd.

C:\ethernut-4.0.2\lloyd\appload>make all
avr-gcc -x assembler-with-cpp -c -Wa,-gstabs,-ahlms=start.lst
-mmcu=atmega128 -I
. start.S -o start.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=appload.lst
-DEE_CONFBOOT=256 -DNUTDEBUG -I. appload.c -o appload.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=config.lst -
DEE_CONFBOOT=256 -DNUTDEBUG -I. config.c -o config.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=dhcp.lst -DE
E_CONFBOOT=256 -DNUTDEBUG -I. dhcp.c -o dhcp.o
dhcp.c: In function `DhcpQuery':
dhcp.c:318: warning: implicit declaration of function `sprintf'
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=tftp.lst -DE
E_CONFBOOT=256 -DNUTDEBUG -I. tftp.c -o tftp.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=udp.lst -DEE
_CONFBOOT=256 -DNUTDEBUG -I. udp.c -o udp.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=ip.lst -DEE_
CONFBOOT=256 -DNUTDEBUG -I. ip.c -o ip.o
ip.c: In function `IpChkSum':
ip.c:108: warning: use of cast expressions as lvalues is deprecated
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=arp.lst -DEE
_CONFBOOT=256 -DNUTDEBUG -I. arp.c -o arp.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=ether.lst -D
EE_CONFBOOT=256 -DNUTDEBUG -I. ether.c -o ether.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=debug.lst -D
EE_CONFBOOT=256 -DNUTDEBUG -I. debug.c -o debug.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=utils.lst -D
EE_CONFBOOT=256 -DNUTDEBUG -I. utils.c -o utils.o
avr-gcc start.o appload.o config.o dhcp.o tftp.o udp.o ip.o arp.o
ether.o debug.
o utils.o -mmcu=atmega128
-Wl,-Map=appload.map,--cref,--defsym,__stack=0x10FF -n
ostartfiles -nodefaultlibs -Ttext=0x1F000 -o appload.elf
C:\WinAVR\bin\..\lib\gcc\avr\3.4.5\..\..\..\..\avr\bin\ld.exe: address
0x20132 o
f appload.elf section .text is not within region text
make: *** [appload.elf] Error 1


-- 
EDB afgang
Pharma Nord
Sadelmagervej 30-32
7100 Vejle
Denmark
Tel:. +45 75 85 74 00




More information about the En-Nut-Discussion mailing list