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.

AM2634: ethernet

Part Number: AM2634

Tool/software:

Dear TI Support Team,

I am currently working with the AM2634 controller using the MCU+SDK and integrating the LwIP stack for UDP communication.

While attempting to create multiple udp_pcb connections dynamically, I observed that only three (3) udp_pcb instances can be created successfully. Any attempt to create more than three results in a NULL return value from udp_new().

To resolve this, I modified the MEMP_NUM_UDP_PCB value to 16 in lwipopts.h, and verified that MEM_USE_POOLS is set to 1 (the default). However, the issue persists, and the fourth udp_pcb still fails to allocate.

This raises a few specific queries:

  1. Is there any additional configuration required apart from MEMP_NUM_UDP_PCB to allow more udp_pcb allocations?

  2. Do I need to recompile the LwIP library for these changes to take effect?
    If so, I attempted to recompile it using the provided makefile, but encountered errors related to missing environment variables. It seems that the setup file (e.g., setupenv.bat) required to initialize the build environment is either missing or undocumented.

Therefore, I request your guidance on the following:

  • The correct procedure to increase the number of UDP PCBs in AM263x LwIP integration.

  • The complete steps to recompile the LwIP library, including how to correctly set up the environment (e.g., required batch/scripts or variables).

  • Any additional memory pool configuration (e.g., MEM_SIZE, MEMP_MEM_MALLOC, or others) that may need adjustment.

Looking forward to your support on this matter.

Best regards,