[En-Nut-Discussion] Error to generate obj file in WINAVR for ethernut

Lin Tak Lee ltlee at baycomp.com
Tue Sep 23 22:12:18 CEST 2003


Dear sir/madam,

I am implementing a small web server on Ethernut board and want to use AVR
studio 4 to do the debugging.
At a starting point, I use basemon program, which is already built in app
folder, as a foundation and configure it.
Since AVR studio needs obj file to debug my program, I use Winavr as a
compiler to generate obj file by 'make studio' command.
But, I got the following error:

**********************************

avr-gcc basemon.o urom.o -mmcu=atmega128
-Wl,--defsym=main=0,-Map=basemon.map,--
cref -L../../lib/gcc/atmega128  -lnutnet -lnutpro -lnutfs -lnutos -lnutdev
-lnut
net -lnutcrt -o basemon.elf
avr-objcopy -O avrobj basemon.elf basemon.obj
avr-objcopy: basemon.obj: Invalid bfd target
make: *** [basemon.obj] Error 1
rm basemon.elf

**********************************

Any solutions?

On the other hand, I tried another way and used AVR coff beta package which
could generates coff file and is accepted as a target in studio too.
But, the sample makefile is not really for building a webserver program.
So, do you know where I can get a sample makefile which could generate coff
file for a webserver like basemon program?
If you have this particular sample makefile file, please send it to me. That
would be a big help for me!  

Thanks! Lin Lee



More information about the En-Nut-Discussion mailing list