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: How can I transfer data via Ethernet?

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi,

There are various ethernet libraries and examples in C2000Ware under many folders such as lwip, c28, c28_cm, cm. I think it's not clear where to start for someone who doesn't know. I have no experience with Ethernet. I want to proceed by starting from the simple. I want to debug the package I sent from the computer via TCP/IP to see it on the MCU, and try sending the package from the MCU to the computer.

Where can I access a full sample project? Where can I learn step by step and exactly what I need to do, how to configure CPU1 and CM, where to select CPU1 or CM when debugging, and similar things? The information is fragmentary and scattered.

  • Can you support me?

  • Ethernet examples are in C2000Ware. I'll transfer this post to the software owner.

    C:\ti\c2000\C2000Ware_5_00_00_00\driverlib\f2838x\examples\c28x_cm\ethernet

    C:\ti\c2000\C2000Ware_5_00_00_00\driverlib\f2838x\examples\cm\ethernet


    Regards,
    Cody 

  • Hi, 

    F2838x is a multi core device . On this device, the CPU1 acts as a master, and by default (upon reset), it owns all the configuration and control. Through software running on CPU1, peripherals and I/Os can be configured to be accessible by the CPU2 core or the CM core,  

    Ethernet is only accessible from the CM core but the CPU1 has to setup the clock and the GPIOs needed for it,  This is done in the cm_common_config_c28x project located at  <C2000Ware>\examples\c28x\cm_common_config_c28x.  

    Before running any Ethernet example on CM , the above example has to be loaded on CPU1 and executed.  Once this is done, you can connect to the CM core and then run the Ethernet examples.

    The C2000Ware Package contains the following types of Examples for Ethernet

    1. Low Level Ethernet Driver Examples
    2. LWIP based Examples
    3. PTPD example

    1. Low Level Ethernet Driver Examples are located at 
    <C2000Ware Installation Directory>\driverlib\f2838x\examples\cm\ethernet

    These examples are based on the Ethernet drivers provided in the <C2000Ware>\driverlib\f2838x\driverlib_cm folder.  

    If you want data to be sent from CPU1 to CM core,  IPC has to be used.  IPC based ethernet examples are located at  <C2000Ware>\examples\c28x_cm\ethernet

    2. LWIP based Examples

    There are a couple of examples provided using the LWIP stack .

    a)  <C2000Ware Installation Directory>\libraries\communications\Ethernet\third_party\lwip\examples\enet_lwip

    This uses the LWIP open source community stack and creates a webserver on F2838x device 

    b)  <C2000Ware>\Ethernet\third_party\lwip\examples\enet_lwip_udp

    This uses the LWIP stack and demonstrates UDP socket .  This requires a PC which runs the SocketTest/’Packet Sender’ software which is used to send and stop receiving messages from PC to F2838x device.


    3. PTPD Example

    a) <C2000Ware Installation Directory>\libraries\communications\Ethernet\third_party\ptpd\examples\enet_ptpd
    This example uses ptpd community stack and runs a PTP slave, and synchronizes the Ethernet PTP clock to the Master Clock based on PTP protocol.

    Hope this information can help you in getting started. 

    Best Regards

    Siddharth

  • I'm using F28388D but I get this error. Can you help me please?