This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28388D: LWIP UDP: Issues while communication with TFTP and other protocols simultaneously

Part Number: TMS320F28388D

Tool/software:

Hello everyone,

When I am trying to communicate simultaneously with two UDP Ports (tftp and another own created protocol) pbuf_alloc will fail at some point when trying to answer an incoming UDP packet from the own created protocol.  

I am using the examples from the C2000 Ware as base and adapted it to my needs. (enet_lwip_udp and tftp_server.c). I modified lwipopts.h to my needs. Tried several things: Increasing pbuf_pool_size, pbuf_pool_bufsize, mem size. When the alloc fails lwip_stats shows error in memory stats but the max used memory alloc is under the available memory. The maximum number of pbuf is not reached too.

The system is running with two tasks. One for the tftp and other for the other protocol. I can provide code snippets and further information if needed. 

Thanks in advance,
Loic