[ECOS] Re: ecosif_input

Savin Zlobec savin@elatec.si
Fri Sep 5 11:38:00 GMT 2003


> Hi,
>
> Iam running an application similiar to the udp echo test using the 
> lwip stack, on an i386 target, with Ethernet support.
>
> I have created an udp client application (not on eCos), when I run my 
> application it waits for the udp data as expected, however when I run 
> my udp client program (with my eCos IP address and udp echo port). I 
> recieve the message, ecosif_input: low_level_input returned NULL, I 
> have traced this to the eth_drv_recv function where pbuf_alloc 
> function is called, then pbuf_pool_alloc function is called but it 
> return zero. This leads to the ecosif message being printed, and 
> eth_drv_recv function getting stuck in a loop.
>
> Does anyone know why this happens, have a setup something up wrong? 
> quite new to this.


The pbuf_pool_alloc function returns NULL if it can't allocate requested 
pbufs (out of memory).
This usually means that you are receiving packets faster than you can 
process them.
Check the lwip memory and udp settings in you ecos.ecc or check yor 
communication protocol.

savin


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list