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:
-
Is there any additional configuration required apart from
MEMP_NUM_UDP_PCB
to allow moreudp_pcb
allocations? -
Do I need to recompile the LwIP library for these changes to take effect?
If so, I attempted to recompile it using the providedmakefile
, 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,