[En-Nut-Discussion] Ethernut card (sample code)

Raul Valle rvl180 at hotmail.com
Tue Jul 18 20:52:57 CEST 2006


Hi to all i bought a ethernut 1.3 card and i would like to know if possible what would be the neccesary configurations i would have to do in avrstudio4 to be able to write and compile succesfully my code . I already used the nut config i made my libraries and added them in the avrstudio and installed the gcc plugin and winavr but I am getting the following error when compiling and building:
====================================================
./../../../../avr-libc-1.4.4/crt1/gcrt1.S:51: undefined reference to `main'
make: *** [testgcc.elf] Error 1
Build failed with 1 errors and 0 warnings...
====================================

and if i add in the object the nutinit.o i get this errors:
==================================================
./../../../../avr-libc-1.4.4/crt1/gcrt1.S:51: undefined reference to `main'
C:\ethernut-4.1.9\nutgcc\lib\libnutos.a(timer.o): In function `NutTimerInit':
timer.c:(.text+0x2c): undefined reference to `NutRegisterTimer'
C:\ethernut-4.1.9\nutgcc\lib\libnutos.a(timer.o): In function `NutTimerStart':
timer.c:(.text+0x190): undefined reference to `NutTimerMillisToTicks'
C:\ethernut-4.1.9\nutgcc\lib\libnutos.a(timer.o): In function `NutGetSeconds':
timer.c:(.text+0x3e2): undefined reference to `NutGetTickClock'
C:\ethernut-4.1.9\nutgcc\lib\libnutos.a(timer.o): In function `NutGetMillis':
timer.c:(.text+0x420): undefined reference to `NutGetTickClock'
timer.c:(.text+0x434): undefined reference to `NutGetTickClock'
timer.c:(.text+0x478): undefined reference to `NutGetTickClock'
C:\ethernut-4.1.9\nutgcc\lib\libnutos.a(confos.o): In function `NutLoadConfig':
confos.c:(.text+0xc): undefined reference to `NutNvMemLoad'
C:\ethernut-4.1.9\nutgcc\lib\libnutos.a(confos.o): In function `NutSaveConfig':
confos.c:(.text+0x56): undefined reference to `NutNvMemSave'
make: *** [testgcc.elf] Error 1
Build failed with 9 errors and 0 warnings...
===================================================


the code :
#include <compiler.h>

/*!
 * \brief Main application routine. 
 *
 */
int main(void){
    for (;;);
}



More information about the En-Nut-Discussion mailing list