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

Reply via email to