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: CM core memory allocation failure

Part Number: TMS320F28388D


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!