Hello Simone, Try to set the buffer size to at least 1500 bytes. I got the same problems with uIP v1.0 and after a week of testing I found the cause.
Open "uip-conf.h" and set "UIP_CONF_BUFFER_SIZE" to at least 1500 (I use 2048). See also the mail thread on 24 january 2007 "Problems with uIP 1.0 for FreeRTOS 4.1.2". According the developers it should work with smaller buffer sizes, but not with me. I used IAR with FreeRTOS v4.1.2 and uIP 1.0. Now I use Eclipse/Yagarto with GCC-ARM and FreeRTOS v4.1.3 and uIP 1.0. What version of uIP do you use and which development environment? Regards, Peter > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Simone > Verzonden: zondag 4 maart 2007 12:18 > Aan: uip-users@sics.se > Onderwerp: [uip-users] Webserver problem > > > Hello, > i'm playing with uIP stack on an 8051 like microcontroller > (specifically the > cypress FX2 usb chip) > I was able to port the stack and run it, get ping responses and have the > telnetd application working. > I'm not currently able to run the webserver example. Here is the > description > of events (8051 is refered as the host/webserver while the > PC/browser is the > client): > > 1) i run the application, setup the connection, open the browser > and browse > for the main page (index.html) > 2) the webserver receive the HTTP GET request for the required > page and send > the correct header (http_header_200) > 3) a tcp acknowledge message is sent back from the client to the host > 4) the webserver try to send the http header once again but then stop > without doing it. > 5) the webclient waits forever for a message that will never arrive. > > at this point i'm able to perform a ping and it works, so this meand that > tcp and microcontroller are still working. The only problem is related to > the webserver. In my opinion on point 4 the webserver doesn't > have to send > the http header again but the file content instead (index.html), but this > doesn't happen and the client waits forever. > Some idea on what's the problem and how to solve it? > Thanks in advance to everybody, > Simone Pedruzzi > > > >