To poll you just need to call xemacif_input(default_netif); This calls the LwIP driver for the Xilinx EMAC. To ensure you have the right driver, you'll need to disconnect the Interrupt pin of the EMAC.
Matthew Yingling -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mirko Lange Sent: Tuesday, October 17, 2006 2:47 AM To: Mailing list for lwIP users Subject: Re: [lwip-users] Problems with Spartan 3e Sathya Thammanur schrieb: > Hi Mirko, > Are you using Interrupts or are you polling the ethernet? Also, the > XAPP663 is an echo server using RAW API wheras the the webserver is a > socket based application. Can you check out XAPP433/434? This is a > webserver design. See if that works for you. > > Sathya > > > On 10/16/06, *Mirko Lange* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > > Hi all. > I'm trying to run the Webserverexample (Xilinx Application Note > XAPP663) > on a Spartan 3e Board without any success. > It seems that the program doesn't return from the > XEmac_PollRecv(EmacPtr, (Xuint8 *)RecvBuffer, &FrameLen) function but > I'm not sure. > The same problem exitst even if I try to initialize the stack > using the > following code: > > int main() > { > struct netif *net_if; > struct ip_addr ipaddr,netmask,gw; > char macaddr[6]={0x00,0x00,0x00,0x00,0x22,0x38}; > sys_init(); > mem_init(); > memp_init(); > pbuf_init(); > etharp_init(); > ip_init(); > IP4_ADDR(&ipaddr,192,168,0,3); > IP4_ADDR(&netmask,255,255,255,0); > IP4_ADDR(&gw,0,0,0,0); > xemacif_setmac(0, (u8_t *) macaddr); > > net_if=netif_add(net_if,&ipaddr,&netmask,&gw,NULL,xemacif_init,ip_input); > netif_set_default(net_if); > while(1) > { > xemacif_input(net_if); > } > > return 0; > } > > Has somebody an idea what I've did wrong and how I can solve this > problem? > Thanks for any answer. > > Mirko Lange > > > _______________________________________________ > lwip-users mailing list > [email protected] <mailto:[email protected]> > http://lists.nongnu.org/mailman/listinfo/lwip-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > lwip-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/lwip-users Hi Sathya, Thanks a lot for your reply. I don't want to use interrupts at this time but also didn't know how to poll the ethernet. Is there something I have to change in the "lwipopts.h" to use Polling-Mode? The echo- and webserver in XAPP663 aren't independent applications? Maybe this is the problem. I'll try out the other two examples. These applications use Socket API and are Interrupt driven, right? Is there an other example that uses Raw API and Polling Mode? Mirko _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
