Discussion:
[En-Nut-Discussion] http server problems
Michel v.d. Net
2004-01-06 08:30:38 UTC
Permalink
Hi,

I have a problem with the http server example. When i load it into the Ethernut board it generates these messages:

Nut/OS 3.3.2.1 HTTP Daemon...Registering device failed
EEPROM/DHCP/ARP config failed
192.168.214.250 ready

But 192.168.214.250 is not ready, because there is no network connection.
Only the red led on the Ethernut 2.0 board is on, i can't seem to register the Ethernet controller.

NutRegisterDevice(&DEV_ETHER, 0x8300, 5) always returns -1

Basemon works fine.
Hopefully somebody can help me with this problem.

Happy new year to everybody :-)

Regards
Michel
Harald Kipp
2004-01-06 09:55:16 UTC
Permalink
Michel,
Post by Michel v.d. Net
Nut/OS 3.3.2.1 HTTP Daemon...Registering device
failed
EEPROM/DHCP/ARP config
failed
192.168.214.250 ready
But 192.168.214.250 is not ready, because there is no network connection.
Only the red led on the Ethernut 2.0 board is on, i can't seem to register
the Ethernet controller.
NutRegisterDevice(&DEV_ETHER, 0x8300, 5) always returns -1
Basemon works fine.
Hopefully somebody can help me with this problem.
Looks like you forgot to run nutconf to configure
the correct Ethernet Controller. It's in the nut
installation directory.

On some machines it fails to run. It creates the
proper entries in UserConf.mk. For the Ethernut 2
the last entry should read

HWDEF=-DETHERNUT2

Harald
Michel v.d. Net
2004-01-06 09:43:01 UTC
Permalink
Hello Herald,

I started nutconf and my UserConf.mk looks like this:

MCU=enhanced
BURN=$(top_srcdir)\tools\win32\uisp
BURNFLAGS=-dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200 -dpart=atmega128 --erase --upload if=$(TARG)
CRUROM=$(top_srcdir)\tools\win32\crurom
AVR=c:\iccavr
HWDEF=-DETHERNUT2

I still have the same problems, any other ideas.

:-) Michel
-----Oorspronkelijk bericht-----
Van: Harald Kipp [SMTP:harald.kipp at egnite.de]
Verzonden: dinsdag 6 januari 2004 10:55
Aan: Ethernut User Chat (English)
Onderwerp: Re: [En-Nut-Discussion] http server problems
Michel,
Post by Michel v.d. Net
Nut/OS 3.3.2.1 HTTP Daemon...Registering device
failed
EEPROM/DHCP/ARP config
failed
192.168.214.250 ready
But 192.168.214.250 is not ready, because there is no network connection.
Only the red led on the Ethernut 2.0 board is on, i can't seem to register
the Ethernet controller.
NutRegisterDevice(&DEV_ETHER, 0x8300, 5) always returns -1
Basemon works fine.
Hopefully somebody can help me with this problem.
Looks like you forgot to run nutconf to configure
the correct Ethernet Controller. It's in the nut
installation directory.
On some machines it fails to run. It creates the
proper entries in UserConf.mk. For the Ethernut 2
the last entry should read
HWDEF=-DETHERNUT2
Harald
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Harald Kipp
2004-01-06 15:37:44 UTC
Permalink
Post by Michel v.d. Net
Hello Herald,
MCU=enhanced
BURN=$(top_srcdir)\tools\win32\uisp
BURNFLAGS=-dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200
-dpart=atmega128 --erase --upload if=$(TARG)
CRUROM=$(top_srcdir)\tools\win32\crurom
AVR=c:\iccavr
HWDEF=-DETHERNUT2
I still have the same problems, any other ideas.
Michel,

UserConf.mk looks good. Sometimes the libs were not
rebuild properly. Make sure, that

... rebuilding works without problem. If in doubt, use
the command line. Type 'make clean' and 'make install'
in the installation directory.

... copying from nut\lib\enhanced to c:\iccavr\lib was
done. Otherwise do it manually.

Did you rebuild your project?

Harald
Michel v.d. Net
2004-01-06 15:24:32 UTC
Permalink
Hello Herald,

It looks like the libs are not updated properly,
when i start make clean and make install I seem to get
a lot of errors.

Can i update the libs manualy or do you no another way?

I receive the following results from make install:

C:\ethernut2\nut>make install
C:/ETHERN~1/NUT/MAKE.EXE -C os install
MAKE.EXE[1]: Entering directory `C:/ethernut2/n
iccavr -c -I../include -Ic:\iccavr/include -e -
T2 -l -Mavr_enhanced -I../mod/include -I../incl
process_begin: CreateProcess((null), iccavr -c
-e -DATMEGA -D_MCU_enhanced -DETHERNUT2 -l -Mav
include init.c, ...) failed.
make (e=2): Het systeem kan het opgegeven besta
MAKE.EXE[1]: *** [init.o] Error 2
MAKE.EXE[1]: Leaving directory `C:/ethernut2/nu
C:\ETHERN~1\NUT\MAKE.EXE: *** [install] Error 2

When i load the httpserv.hex from C:\ethernut2\nut\bin\atmega128\
into my ethernut 2 board, it runs properly.

When i build / rebuild my project in icc, i receive one thing that looks like a error to:

robi C:\ethernut2\nut\appicc\httpd\httpd.hex ..\..\bin\atmega128\httpserv.bin
command or filename wrong.

Thanks again,
:-) Michel
-----Oorspronkelijk bericht-----
Van: Harald Kipp [SMTP:harald.kipp at egnite.de]
Verzonden: dinsdag 6 januari 2004 16:38
Aan: Ethernut User Chat (English)
Onderwerp: RE: [En-Nut-Discussion] http server problems
Post by Michel v.d. Net
Hello Herald,
MCU=enhanced
BURN=$(top_srcdir)\tools\win32\uisp
BURNFLAGS=-dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200
-dpart=atmega128 --erase --upload if=$(TARG)
CRUROM=$(top_srcdir)\tools\win32\crurom
AVR=c:\iccavr
HWDEF=-DETHERNUT2
I still have the same problems, any other ideas.
Michel,
UserConf.mk looks good. Sometimes the libs were not
rebuild properly. Make sure, that
... rebuilding works without problem. If in doubt, use
the command line. Type 'make clean' and 'make install'
in the installation directory.
... copying from nut\lib\enhanced to c:\iccavr\lib was
done. Otherwise do it manually.
Did you rebuild your project?
Harald
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Harald Kipp
2004-01-06 20:41:21 UTC
Permalink
Hi Michel,

Several problems.
Post by Michel v.d. Net
C:\ethernut2\nut>make install
C:/ETHERN~1/NUT/MAKE.EXE -C os install
MAKE.EXE[1]: Entering directory `C:/ethernut2/n
iccavr -c -I../include -Ic:\iccavr/include -e -
T2 -l -Mavr_enhanced -I../mod/include -I../incl
process_begin: CreateProcess((null), iccavr -c
iccavr.exe isn't in your path. I prepared a simple
batch and call this every time I open a DOS window.
It contains:
SET PATH=C:\iccavr\bin;%PATH%
Post by Michel v.d. Net
When i build / rebuild my project in icc, i receive one thing that looks
robi C:\ethernut2\nut\appicc\httpd\httpd.hex ..\..\bin\atmega128\httpserv.bin
command or filename wrong.
Get robi from the link at
http://www.ethernut.de/en/eboot/
Best move it to iccavr/bin
Post by Michel v.d. Net
Thanks again,
It's not your problem but ours. Ethernut 2 had been released
in some kind of a hurry. Docs and installations are horrible,
sorry.

Regards,

Harald
h-h.gerhard
2004-01-07 16:04:03 UTC
Permalink
Hello Harald and Michel,

I have exactly the same problem as Michel, with the "httpserv" program.
I tried everything like Michel and all of Haralds advices.

I installed all files (newest version from ethernut website) and I've
used nutconf.exe.
I copied all lib files manually to the icc\lib directory.
I checked all options in my compiler and I checked the UserConf.mk file.

Everything seems to be correct.

Of course I rebuilt my project and ICC didn't write anything about an
error, just "Done."
Flashing the "httpserv.hex" file from "c:\Ethernut\nut\appicc\httpd\"
and verifying it went well too.

...but like Michel already wrote, the ethernut2 board doesn't connect
LAN, but from the COM port I receive:

"Nut/OS 3.3.2.1 HTTP Daemon...Registering device failed
EEPROM/DHCP/ARP config failed
192.168.150.112 ready"

Theres is the right IP in the EEPROM, because if I copy the example
"c:\Ethernut\nut\bin\atmega128\httpserv.hex" into the board, everything
works fine, the board connects LAN, my browser shows all example
webpages and I receive the following message through the COM port:
"Nut/OS 3.3.2.1 HTTP Daemon...192.168.150.112 ready"

I have no glue, why it doesn't work with my self-compiled file...

cu Nig

P.S.: I was wrong in my last email. It just worked because I've copied
the wrong file (the one from the bin-directory) into the ethernut
board...
Harald Kipp
2004-01-08 17:38:54 UTC
Permalink
Post by h-h.gerhard
"Nut/OS 3.3.2.1 HTTP Daemon...Registering device failed
EEPROM/DHCP/ARP config failed
192.168.150.112 ready"
For ICCAVR, please add

ETHERNUT2

to Compiler Options -> Compiler -> Macro-Define(s)

Harald

P.S. If you are posting with an email address, which
differs from the registered address, your post is hold
for approval. I do this manually and not regularily.
Due to the vast amount of spam to be deleted, I may
even overlook it. (Or even delete it if your subject
contains BUSINESS PROPOSAL FROM NIGERIA or something
similar. :-)) But, no problem, I found and approved it.
Michel v.d. Net
2004-01-06 08:30:38 UTC
Permalink
Hi,

I have a problem with the http server example. When i load it into the Ethernut board it generates these messages:

Nut/OS 3.3.2.1 HTTP Daemon...Registering device failed
EEPROM/DHCP/ARP config failed
192.168.214.250 ready

But 192.168.214.250 is not ready, because there is no network connection.
Only the red led on the Ethernut 2.0 board is on, i can't seem to register the Ethernet controller.

NutRegisterDevice(&DEV_ETHER, 0x8300, 5) always returns -1

Basemon works fine.
Hopefully somebody can help me with this problem.

Happy new year to everybody :-)

Regards
Michel
Harald Kipp
2004-01-06 09:55:16 UTC
Permalink
Michel,
Post by Michel v.d. Net
Nut/OS 3.3.2.1 HTTP Daemon...Registering device
failed
EEPROM/DHCP/ARP config
failed
192.168.214.250 ready
But 192.168.214.250 is not ready, because there is no network connection.
Only the red led on the Ethernut 2.0 board is on, i can't seem to register
the Ethernet controller.
NutRegisterDevice(&DEV_ETHER, 0x8300, 5) always returns -1
Basemon works fine.
Hopefully somebody can help me with this problem.
Looks like you forgot to run nutconf to configure
the correct Ethernet Controller. It's in the nut
installation directory.

On some machines it fails to run. It creates the
proper entries in UserConf.mk. For the Ethernut 2
the last entry should read

HWDEF=-DETHERNUT2

Harald
Michel v.d. Net
2004-01-06 09:43:01 UTC
Permalink
Hello Herald,

I started nutconf and my UserConf.mk looks like this:

MCU=enhanced
BURN=$(top_srcdir)\tools\win32\uisp
BURNFLAGS=-dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200 -dpart=atmega128 --erase --upload if=$(TARG)
CRUROM=$(top_srcdir)\tools\win32\crurom
AVR=c:\iccavr
HWDEF=-DETHERNUT2

I still have the same problems, any other ideas.

:-) Michel
-----Oorspronkelijk bericht-----
Van: Harald Kipp [SMTP:harald.kipp at egnite.de]
Verzonden: dinsdag 6 januari 2004 10:55
Aan: Ethernut User Chat (English)
Onderwerp: Re: [En-Nut-Discussion] http server problems
Michel,
Post by Michel v.d. Net
Nut/OS 3.3.2.1 HTTP Daemon...Registering device
failed
EEPROM/DHCP/ARP config
failed
192.168.214.250 ready
But 192.168.214.250 is not ready, because there is no network connection.
Only the red led on the Ethernut 2.0 board is on, i can't seem to register
the Ethernet controller.
NutRegisterDevice(&DEV_ETHER, 0x8300, 5) always returns -1
Basemon works fine.
Hopefully somebody can help me with this problem.
Looks like you forgot to run nutconf to configure
the correct Ethernet Controller. It's in the nut
installation directory.
On some machines it fails to run. It creates the
proper entries in UserConf.mk. For the Ethernut 2
the last entry should read
HWDEF=-DETHERNUT2
Harald
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Harald Kipp
2004-01-06 15:37:44 UTC
Permalink
Post by Michel v.d. Net
Hello Herald,
MCU=enhanced
BURN=$(top_srcdir)\tools\win32\uisp
BURNFLAGS=-dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200
-dpart=atmega128 --erase --upload if=$(TARG)
CRUROM=$(top_srcdir)\tools\win32\crurom
AVR=c:\iccavr
HWDEF=-DETHERNUT2
I still have the same problems, any other ideas.
Michel,

UserConf.mk looks good. Sometimes the libs were not
rebuild properly. Make sure, that

... rebuilding works without problem. If in doubt, use
the command line. Type 'make clean' and 'make install'
in the installation directory.

... copying from nut\lib\enhanced to c:\iccavr\lib was
done. Otherwise do it manually.

Did you rebuild your project?

Harald
Michel v.d. Net
2004-01-06 15:24:32 UTC
Permalink
Hello Herald,

It looks like the libs are not updated properly,
when i start make clean and make install I seem to get
a lot of errors.

Can i update the libs manualy or do you no another way?

I receive the following results from make install:

C:\ethernut2\nut>make install
C:/ETHERN~1/NUT/MAKE.EXE -C os install
MAKE.EXE[1]: Entering directory `C:/ethernut2/n
iccavr -c -I../include -Ic:\iccavr/include -e -
T2 -l -Mavr_enhanced -I../mod/include -I../incl
process_begin: CreateProcess((null), iccavr -c
-e -DATMEGA -D_MCU_enhanced -DETHERNUT2 -l -Mav
include init.c, ...) failed.
make (e=2): Het systeem kan het opgegeven besta
MAKE.EXE[1]: *** [init.o] Error 2
MAKE.EXE[1]: Leaving directory `C:/ethernut2/nu
C:\ETHERN~1\NUT\MAKE.EXE: *** [install] Error 2

When i load the httpserv.hex from C:\ethernut2\nut\bin\atmega128\
into my ethernut 2 board, it runs properly.

When i build / rebuild my project in icc, i receive one thing that looks like a error to:

robi C:\ethernut2\nut\appicc\httpd\httpd.hex ..\..\bin\atmega128\httpserv.bin
command or filename wrong.

Thanks again,
:-) Michel
-----Oorspronkelijk bericht-----
Van: Harald Kipp [SMTP:harald.kipp at egnite.de]
Verzonden: dinsdag 6 januari 2004 16:38
Aan: Ethernut User Chat (English)
Onderwerp: RE: [En-Nut-Discussion] http server problems
Post by Michel v.d. Net
Hello Herald,
MCU=enhanced
BURN=$(top_srcdir)\tools\win32\uisp
BURNFLAGS=-dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200
-dpart=atmega128 --erase --upload if=$(TARG)
CRUROM=$(top_srcdir)\tools\win32\crurom
AVR=c:\iccavr
HWDEF=-DETHERNUT2
I still have the same problems, any other ideas.
Michel,
UserConf.mk looks good. Sometimes the libs were not
rebuild properly. Make sure, that
... rebuilding works without problem. If in doubt, use
the command line. Type 'make clean' and 'make install'
in the installation directory.
... copying from nut\lib\enhanced to c:\iccavr\lib was
done. Otherwise do it manually.
Did you rebuild your project?
Harald
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
Harald Kipp
2004-01-06 20:41:21 UTC
Permalink
Hi Michel,

Several problems.
Post by Michel v.d. Net
C:\ethernut2\nut>make install
C:/ETHERN~1/NUT/MAKE.EXE -C os install
MAKE.EXE[1]: Entering directory `C:/ethernut2/n
iccavr -c -I../include -Ic:\iccavr/include -e -
T2 -l -Mavr_enhanced -I../mod/include -I../incl
process_begin: CreateProcess((null), iccavr -c
iccavr.exe isn't in your path. I prepared a simple
batch and call this every time I open a DOS window.
It contains:
SET PATH=C:\iccavr\bin;%PATH%
Post by Michel v.d. Net
When i build / rebuild my project in icc, i receive one thing that looks
robi C:\ethernut2\nut\appicc\httpd\httpd.hex ..\..\bin\atmega128\httpserv.bin
command or filename wrong.
Get robi from the link at
http://www.ethernut.de/en/eboot/
Best move it to iccavr/bin
Post by Michel v.d. Net
Thanks again,
It's not your problem but ours. Ethernut 2 had been released
in some kind of a hurry. Docs and installations are horrible,
sorry.

Regards,

Harald
h-h.gerhard
2004-01-07 16:04:03 UTC
Permalink
Hello Harald and Michel,

I have exactly the same problem as Michel, with the "httpserv" program.
I tried everything like Michel and all of Haralds advices.

I installed all files (newest version from ethernut website) and I've
used nutconf.exe.
I copied all lib files manually to the icc\lib directory.
I checked all options in my compiler and I checked the UserConf.mk file.

Everything seems to be correct.

Of course I rebuilt my project and ICC didn't write anything about an
error, just "Done."
Flashing the "httpserv.hex" file from "c:\Ethernut\nut\appicc\httpd\"
and verifying it went well too.

...but like Michel already wrote, the ethernut2 board doesn't connect
LAN, but from the COM port I receive:

"Nut/OS 3.3.2.1 HTTP Daemon...Registering device failed
EEPROM/DHCP/ARP config failed
192.168.150.112 ready"

Theres is the right IP in the EEPROM, because if I copy the example
"c:\Ethernut\nut\bin\atmega128\httpserv.hex" into the board, everything
works fine, the board connects LAN, my browser shows all example
webpages and I receive the following message through the COM port:
"Nut/OS 3.3.2.1 HTTP Daemon...192.168.150.112 ready"

I have no glue, why it doesn't work with my self-compiled file...

cu Nig

P.S.: I was wrong in my last email. It just worked because I've copied
the wrong file (the one from the bin-directory) into the ethernut
board...
Harald Kipp
2004-01-08 17:38:54 UTC
Permalink
Post by h-h.gerhard
"Nut/OS 3.3.2.1 HTTP Daemon...Registering device failed
EEPROM/DHCP/ARP config failed
192.168.150.112 ready"
For ICCAVR, please add

ETHERNUT2

to Compiler Options -> Compiler -> Macro-Define(s)

Harald

P.S. If you are posting with an email address, which
differs from the registered address, your post is hold
for approval. I do this manually and not regularily.
Due to the vast amount of spam to be deleted, I may
even overlook it. (Or even delete it if your subject
contains BUSINESS PROPOSAL FROM NIGERIA or something
similar. :-)) But, no problem, I found and approved it.

Loading...