Part Number: TMDSCNCD28388D
The protocol we use is UDP. What should we do in the enet_lwip routine?
thanks
vince
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.
Part Number: TMDSCNCD28388D
The protocol we use is UDP. What should we do in the enet_lwip routine?
thanks
vince
Hi,
You can refer to following similar e2e https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1010186/tms320f28388d-questions-about-udp-protocol-in-lwip
Regards,
Yashwant
HI, Yashwant Temburu1
To use the UDP protocol, do I need to add the header file #include "src/core/udp.c"?
I tried to add the header file here, and found a lot of errors after compiling. As shown below:

thanks
vince
You dont have to add that file. it is already included in the lwip_lib.c when you enable udp in lwipopts.h
HI,Yashwant Temburu1

After commenting out the udp_send(UdpPcb,p); and delay in the above while, I can ping through with the cmd file.
But as soon as the comment is opened, the ping does not work.As shown below:

The udp_send(UdpPcb,p); and delay in the while will have the same effect on the cmd 
 ping?
THANKS
VINCE
Check for the transmitted packets in wireshark. The cpu might be continuously transmitting UDP packets.
Check if the receive isr getting called.
HI,Yashwant Temburu1
First of all, the UDP protocol can already send data out.
Without your help, it is estimated that it will be difficult to complete.
Thank you very much!
During the debugging process, I encountered a problem, as shown below:
When we burn the CPU1 program into the CPU1 core.
After that, we click to connect to the CM4 core, and the window will pop up as shown below:
At this time, there is no programming routine to CM4 core.


Later, after I burn the program into the CM4 core and run it, the data can be sent out through the UDP protocol and can be received on the host computer.
From the results of the above picture, it has no effect on the overall program. But is it an error that cannot be ignored?
thanks
vince
Probably You can use udp_send only after you have connected on the port. I am attaching a reference UDP project where udp_rx, udp_tx are the variables which are used for communication on port 28000. You can use SocketTest windows software for host side.enet_lwip_udp.zip