lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Memory allocation fail after some time in lwip stack for lp


From: jbhoi
Subject: [lwip-users] Memory allocation fail after some time in lwip stack for lpc1833 controller
Date: Wed, 8 Oct 2014 03:26:54 -0700 (MST)

I am working on LPC1833 microcontroller and used lwip stack *v1.4.1* and
freeRTOS *v7.3.0.*

I am successfully able to up and run the stack and ping this controller from
other device. But this work for sort time(around 2 to 3 minutes) after that
ping is lost.I have trace the issue in which **mem_malloc** function fails
to allocate memory.

The Flow of code it as follows(From top to bottom)

    vPacketReceiveTask
         |
    lpc_enetif_input
         |
    lpc_low_level_input
         |
    lpc_rx_queue
         |
    pbuf_alloc
         |
    mem_malloc

Now one interesting thing is ping is successfully working until **1536
bytes** successfully allocated and when allocation fail start for those
bytes then ping is lost. 1536 bytes is buffer length of ethernet buffer.

Any one idea about issue?



--
View this message in context: 
http://lwip.100.n7.nabble.com/Memory-allocation-fail-after-some-time-in-lwip-stack-for-lpc1833-controller-tp23377.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

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