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: Example project/driver code for operation for TCP communication

Part Number: TMS320F28388D
Other Parts Discussed in Thread: TMDSCNCD28388D, C2000WARE

Hi experts,

My customer is trying to perform Ethernet communication with a PC (or another F28388D) using TMDSCNCD28388D (revB).
The purpose is to use TCP communication (Modbus/TCP) over Ethernet for communication between devices.

Q1:Could you please provide reference information for sample project/driver code for operation with TCP Client and for TCP communication?
(It is best to have an OS such as FreeRTOS, but bare metal is also fine.)

Q2:Also, are there any plans to support C2000ware in the future?

[Details]
The lwip sample code (bare metal) worked successfully.
Also, they are able to run it as a TCPServer by referring to the sample code. (Connect from PC to F28388D and receive data sent from PC on F28388D)
However, they cannot connect as a TCP Client to a PC as a TCP Server. (The same applies if another F28388D is operated as a TCP Server)

A connection request (SYN) to the PC is being issued, and (SYN, ACK) from the PC is being sent.
However, since ACK is not returned on the client side, the 3-way handshake with TCP is not established and Connect cannot be established.
Although it complies with lwIp etiquette, I think the driver is probably insufficient.

Best regards,
O.H

  • Hi,

    Please allow me to see if we are able to provide resources for this.

    Best Regards,

    Ben Collier

  • Hi,

    There is no example where F28388D is configured as TCP client.     

    To debug this further,  uou can look at lwip_stats variable on the target(Expressions window) and look at the link,ip,tcp level stats to see at which layer the packet is not passed up/responded to.

    At the Ethernet driver level it is  good to check the following watch variables: Ethernet_rxInterruptCount and Ethernet_txInterruptCount 

    Before you call the tcp_connect and after the tcp_connect, it is good to see the statistics. You can also check the Ethernet statistics registers using the register view or CCS memory window. 

    Best Regards

    Siddharth

  • Hi Siddharth,

    I apologize for the late reply.

    I understood abut Q1. We have shared it with our customers.

    What do you think about Q2? Will you continue to mainly use community sites like the one below?
    https://protect2.fireeye.com/v1/url

    Best regards,
    O.H

  • O.H

    Currently there is no plan to support Modbus TCP within C2000Ware.  If any one in the community already has any such example , it can be used as reference. 

    Best Regards

    Siddharth

  • Hi Siddharth,

    Thank you for the reply. I understood.

    We will contact you again if additional questions arise as we proceed with debugging.

    Best regards,
    O.H