avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Invalid bfd target


From: Diego Brengi
Subject: [avr-gcc-list] Invalid bfd target
Date: Tue, 15 May 2007 16:23:50 -0300

Hello. I am starting using Debian etch to program avr chips.
Tools works well with a simple ledtest example from the web.
I have compiled a small C program and downloaded with uisp.

After that I downloaded avrlib and try to make examples
to work. This is my problem:

----log---
$export AVRLIB=/usr/src/avrlib
$make
[...start to compile...]
avr-gcc  /usr/src/avrlib/buffer.o /usr/src/avrlib/uart.o /usr/src/avrlib/rprintf
.o /usr/src/avrlib/timer.o /usr/src/avrlib/a2d.o /usr/src/avrlib/vt100.o /usr/sr
c/avrlib/cmdline.o cmdlinetest.o   -Wl,-Map=cmdlinetest.map,--cref -mmcu=atmega1
63 -o cmdlinetest.elf
avr-objcopy --debugging -O coff-ext-avr \
               --change-section-address   .data-0x800000 \
               --change-section-address    .bss-0x800000 \
               --change-section-address .noinit-0x800000 \
               --change-section-address .eeprom-0x810000 \
               cmdlinetest.elf cmdlinetest.cof
avr-objcopy: cmdlinetest.cof: Invalid bfd target
avr-objcopy: --change-section-vma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-lma .eeprom+0xff7f0000 never used
avr-objcopy: --change-section-vma .noinit+0xff800000 never used
avr-objcopy: --change-section-lma .noinit+0xff800000 never used
avr-objcopy: --change-section-vma .bss+0xff800000 never used
avr-objcopy: --change-section-lma .bss+0xff800000 never used
avr-objcopy: --change-section-vma .data+0xff800000 never used
avr-objcopy: --change-section-lma .data+0xff800000 never used
make: *** [cmdlinetest.cof] Error 1
rm /usr/src/avrlib/cmdline.o /usr/src/avrlib/buffer.o /usr/src/avrlib/timer.o /u
sr/src/avrlib/rprintf.o /usr/src/avrlib/uart.o /usr/src/avrlib/vt100.o /usr/src/
avrlib/a2d.o

---end log----

The .elf .map .o and .lst files are there and not empty, but I don't understand
the error. And don't know
what is the .cof file for. Do I need it?
$ls
cmdlineconf.h
cmdlinetest.c
cmdlinetest.elf
cmdlinetest.lst
cmdlinetest.map
cmdlinetest.o
global.h
makefile

Tools versions are:

$avr-gcc -v
Usando especificaciones internas.
Target: avr
Configurado con: ../build-tree/gcc-4.1.0/configure -v --enable-languages=c,c++
--prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared
--with-system-zlib --enable-long-long --enable-nls --without-included-gettext --
disable-checking --disable-libssp --build=i486-linux-gnu --host=i486-linux-gnu -
-target=avr
Modelo de hilos: single
gcc versiĆ³n 4.1.0

$avr-objcopy -V
GNU objcopy 2.16.1

I would appreciate some help.
Thanks for your time.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]