Hello,
I'm using lwip to implement udp communication in CM core of TMS320f28388d.
and sometimes returns memory allocation error.
the code below is from f2838xif.c file
/*
* Get the head of the packet descriptor chain that will be passed to
* the driver for sending.
*/
pktDescOrigPtr = mem_malloc(sizeof(Ethernet_Pkt_Desc));
mem_alloc_count++;
if(pktDescOrigPtr == NULL)
{
pbuf_free(p);
LINK_STATS_INC(link.memerr);
__asm(" bkpt #0");
return (ERR_MEM);
}
looking forward to any advice, thanks!

