[En-Nut-Discussion] Ethernut 2.1 and AVR studio
Harald Kipp
harald.kipp at egnite.de
Sat Jan 17 16:56:32 CET 2009
Xeeon wrote:
> Hello. Is it possible to compile NutOS in AVR studio using WinAVR? I tried
> that many times but with many errors.
No idea, if this works.
> I would like to start with httpd.c app (renamed to ethernut.c). And this is
> the result:(
Why not start with app/simple, then app/events etc.
> avr-gcc -I"C:\Ethernut 2.1B\..\ethernut-4.6.4\nutbld\include" -I"C:\Ethernut
> 2.1B\..\ethernut-4.6.4\nut\include" -mmcu=atmega128 -Wall -gdwarf-2
> -std=gnu99 -DF_CPU=16000000UL -Os -fsigned-char -MD -MP -MT
> Ethernut.o -MF dep/Ethernut.o.d -c ../Ethernut.c
You're obviously not using nutapp/http/Makefile. In your compiler call
at least option -DETHERNUT2 seems to be missing. This is required for
both, building the system libraries and the application.
Btw. don't try Nut/OS in the AVR Studio Simulator. I'm almost sure that
this will not work.
Harald
More information about the En-Nut-Discussion
mailing list