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: Matthew Yingling
Subject: RE: [lwip-users] Problems with Spartan 3e
Date: Tue, 17 Oct 2006 10:22:14 -0400

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: address@hidden
[mailto:address@hidden 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* <address@hidden <mailto: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 <mailto:address@hidden>
>     http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> 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
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users





reply via email to

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