lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] help: how to use interrupt in RAW_API mode under Xilinx


From: ye wu
Subject: Re: [lwip-users] help: how to use interrupt in RAW_API mode under Xilinx-V2
Date: Mon, 23 Oct 2006 12:53:42 +0800

Hi, all
 
I'm now trying to do the interrupt in Standlone, but still without success.
 
It seems that the interrupt work well, i put a print in the handler and we can see the handler was called several times.
 
but when a interrupt come, the handler do nothing.
 
i turned on the debug of lwip and find something strange in the init of lwip, there ware lots of 'pbuf_alloc: allocated pbuf' but i haven't seen any free of them...
i find out latter that this pbuf_alloc hapens at
if (init(netif) != ERR_OK) {
    return NULL;
  }
in the netif_add() function. the init function is the xemacif_init() that given to it.
 
i don't know why this happens, could anybody help me ?
 
Thanks a lot!
 
 
 
the output of my terminal is:

Netif_init Donedefault netif = C0024

netif: before netif_set_addr netif_set_ipaddr: netif address being changed

netif:IP address of interface set to ...

netif: netmask of interface set to ...

netif: GW address of interface set to ...

netif: after netif_set_addr

pbuf_alloc(length=)                                                     // there comes the pbuf_alloc in init process of lwip...

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: all

ocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc

(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

pbuf_alloc(length=)

pbuf_alloc: allocated pbuf

pbuf_alloc(length=) ==

netif: after netif_init

netif: added interface e0 IP addr ... netmask ... gw ...

Netif_Add Done

netif:setting default interface e0

udp_bind(ipaddr = ..., port = )

udp_bind: bound to ..., port

udp_connect: connected to ..., port

entering while...

Handler Called, Status:4               // the interrupt handler do called after i connected the cable of the net. but there seems nothing done after that...
Handler Called, Status:4
Handler Called, Status:4
....


reply via email to

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