lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Problems with Spartan 3e


From: Sathya Thammanur
Subject: Re: [lwip-users] Problems with Spartan 3e
Date: Mon, 16 Oct 2006 07:36:51 -0700

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 <address@hidden> 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
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]