[En-Nut-Discussion] Error trying to make Nut examples

David Armstrong david.armstrong at ntlworld.com
Sun Nov 10 12:15:22 CET 2002


try the newer build of avr freaks compiler etc
this works for me no problem under xp

i have the ethernut directory totaly seperate from avrgcc
also without problems

also do not forget to copy the relevant nut library's to your avr lib
also under xp the make command need to be carried out in each directory

any problems David let me know


----- Original Message -----
From: "David Corder" <david.corder at ntlworld.com>
To: <en-nut-discussion at egnite.de>
Sent: Sunday, November 10, 2002 10:46 AM
Subject: [En-Nut-Discussion] Error trying to make Nut examples

> I've got a v1.1 Ethernut board which I'm trying to set up to experiment
> but I seem to be doing something wrong with the compiler set up.  I've
> installed "avrgcc_freaks20011214a.exe" followed by "nut252c.exe" and
> "nut252d.exe" which I put into a nut directory under the avrgcc directory.
> I have edited nutenvgc.bat to set the target processor to atmega103 and to
> point to the correct nut directories.  Opening a DOS window I run nutenvgc
> which runs successfully as far as I can see.  Unfortunately when I type
> in any of the app directories I get the following (simple used in this
> case):
avr-gcc -c -mmcu=atmega103 -Os -Wall -Wstrict-prototypes -Wa,-ahlms=simple.l
> st  -IC:/avrgcc/nut/include simple.c -o simple.o
> avr-gcc
simple.o -mmcu=atmega103 -Wl,-Map=simple.map,--cref -LC:/avrgcc/nut/lib/gcc/
> atmega103  C:/avrgcc/nut/lib/gcc/atmega103/init.o -lnutos -lnutdev -o
> simple.elf
> C:\AVRGCC\BIN\..\lib\gcc-lib\avr\3.0.2\..\..\..\..\avr\bin\ld.exe:
> C:/avrgcc/nut/lib/gcc/atmega103/init.o: Relocations in generic ELF (EM:
> C:/avrgcc/nut/lib/gcc/atmega103/init.o: could not read symbols: File in
> wrong format
> make:  *** [simple.elf] Error 1
> Any suggestions would be welcome.  I'm running this under XP but tried the
> same installation process under 98 with the same problems.  I've tried
> Clean, this works without any errors.
> Thanks,
> David
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo/en-nut-discussion

More information about the En-Nut-Discussion mailing list