[En-Nut-Discussion] NutLoadConfig

Harald Kipp harald.kipp at egnite.de
Mon Mar 29 10:48:00 CEST 2004


Michel,

It depends on your compiler.

With ImageCraft you add

-ucrtnut.o c:\icc\lib\nutinit.o

to "Other Options". Also see
http://www.ethernut.de/en/iccavr/index.html

With GCC you link nutinit.o first and use link option
--defsym=main=0
because compiler.h (now arch/avr.h) defines
#define main    NutAppMain
Not nice, but no better solution yet.

If NutInit is not executed, almost nothing will work.
It creates the heap, initializes the system timer and
starts the idle thread.

Harald




More information about the En-Nut-Discussion mailing list