[En-Nut-Discussion] Problem to initialize the ethernet controler rtl 8019AS

Julien CHAUSSEC Julien.Chaussec at ifremer.fr
Fri Jun 24 15:41:34 CEST 2005


Hi everybody,

I downloaded the 3.9.7 Ethernut version. I work with Programmer Notepad 
2 v2.0.5-18-mingus and i use the ethernut software
manual volume 2. With this manual(chapter 5, page 15), I would like to
initialize the Ethernet controller, it is the realtek rtl8019as

Here is the program ,without any modification,extracted from the manual:
#include <dev/nicrtl.h>
#include <sys/thread.h>
#include <arpa/inet.h>
/*  mac address */
static u_char mac[6] = { 0x00, 0x0a, 0x59, 0x03, 0x03, 0x0a };
THREAD(NutMain, arg)
{
NutRegisterDevice(&devEth0, 0x8300, 5);
NutNetIfConfig("eth0", mac, 0, 0);
for(;;);
}
and there is the response of the 3.3.2 GCC compiler

C:\PROGRA~1\WINAVR\BIN\..\lib\gcc-lib\avr\3.3.2\..\..\..\..\avr\lib\avr5\crtm128.o(.init9+0x0): 
  undefined reference to `main'
test_tcp.o(.text+0x6): In function `NutMain':
C:\WINDOWS\Bureau\julien-winavr\pgmtest\tcp/test_tcp.c:10: undefined JC> 
reference to `devEth0'
test_tcp.o(.text+0x8):C:\WINDOWS\Bureau\julien-winavr\pgmtest\tcp/test_tcp.c:10: 
undefined reference to `devEth0' 
test_tcp.o(.text+0xa):C:\WINDOWS\Bureau\julien-winavr\pgmtest\tcp/test_tcp.c:10: 
undefined reference to `NutRegisterDevice'
test_tcp.o(.text+0x20):C:\WINDOWS\Bureau\julien-winavr\pgmtest\tcp/test_tcp.c:11: 
undefined reference to `NutNetIfConfig'
make.exe: *** [test_tcp.elf] Error 1 >> Process Exit Code: 2

If you have any idea, do not hesitate to contact me.Thank you.
-- 
Julien.Chaussec at ifremer.fr





More information about the En-Nut-Discussion mailing list