Memory allocation fail after some time in lwip stack for lpc1833 controller.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Memory allocation fail after some time in lwip stack for lpc1833 controller.

1,396件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jbhoi on Tue Oct 07 03:13:49 MST 2014
Hi,

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?

Regards,
Jayesh
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,165件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jbhoi on Tue Oct 07 06:13:25 MST 2014
This is not in my hand free will handle by lwip stack and driver.
0 件の賞賛
返信

1,165件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wmues on Tue Oct 07 06:11:53 MST 2014
Is there a free() for each malloc()?
0 件の賞賛
返信