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: UDP Connection Initialization Issues

Part Number: TMS320F28388D


I'm want to use a 28388D for 1:1 UDP communication with multiple devices.

I wrote the code by referring to the example code of enet_lwip_udp in the C2000 sample

Up to 4 UDP connections(udp_pcb) were initialized, but from the 5, the connection is not initialized

Is the maximum number of communications that can be initialized up to 4?

In the picture, The four above have been initialized as I intended. However, the two at the bottom contain garbage values and cannot be modified.

The udp initialization code is as follows.

/////////////////////////////////////////////

struct udp_pcb *oper_upcb;

oper_upcb= udp_new();

port = 9400;

udp_bind(oper_upcb, IP_ADDR_ANY, port);

udp_recv(oper_upcb, &udp_rx_callback_op, (void*) 0);

ip_addr_t addr_oper;

IP4_ADDR(&addr_oper, 192,168,0,10);

udp_connect(oper_upcb, &addr_oper, port);

/////////////////////////////////////////////

Each UDP initialization starts with this code.

The port is fixed at 16875 that fail to initialize udp_pcb

have any ideas for resetting?