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.

TM4C1292NCPDT: Path of tcp-echo example project

Part Number: TM4C1292NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Hi,

Where can I find the 'tcpecho' example project?

Please guide with the path where it is located.

Thanks,

Kiran

  • Could you please guide for an example project for configuring tm4c1292ncpdt microcontroller with an external PHY? 

    Also, the connections that need to be done from the microcontroller to the external PHY IC for SPI interface?

    Thanks,

    Kiran

  • Hi,

    Where can I find the 'tcpecho' example project?

    You can find the example at C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\enet_tcpecho_server.

    This app note also has software collaterals. 

     Please note that these examples are developed for TM4C129 MCU with the integrated PHY. Sorry, we do not have examples using external PHY although tm4c1292ncpdt  MCU has the MII interface to the external PHY. 

  • Hi Charles,

    I cannot find this example in my path,is there a difference in the version of Tivaware?

    Please guide.

    Thanks,

    Kiran

  • The following post (6 years ago) says that the updated Tivaware version has the example with external PHY.

    TM4C129DNCPDT with external phy through MII? - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    Any comments on this?

    Thanks,

    Kiran

  • Also, in the above post of 6 years back could you please help in the hardware connections that need to be done from the microcontroller to the external PHY?

  • Hi Kiranjit,

      The example is in TivaWare version 2.2.0.295 as I have indicated in  C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\enet_tcpecho_server.

    Also, in the above post of 6 years back could you please help in the hardware connections that need to be done from the microcontroller to the external PHY?

      Also for the post that you reference to, Amit said the following. The TivaWare versions after 2.1.4 supports external PHY (e.g. specifying EMAC_PHY_IS_EXT_MII )  but we just don't have an example for it. 

    "Yes. The just released 2.1.4 has the code integrated for MII interface for an external PHY. There are some other changes as well. However for using MII interface you need to place the define EMAC_PHY_IS_EXT_MII during compilation."

  • Hi Charles,

    Thanks for your reply.

    Are there any steps to perform/run these examples (such as enet_tcpecho_server and enet_lwip ) as it is, including hardware connections and running software?

    The 'readme' files included in these example projects don't give much information.

    Please guide.

    Thanks,

    Kiranjit

  • Are there any steps to perform/run these examples (such as enet_tcpecho_server and enet_lwip ) as it is, including hardware connections and running software?

    You can just run the example as is. 

    1. Load the example to the flash.

    2. Run the example. The example will display the IP address it acquires from the DHCP server on the terminal window. Open the COM port on the PC to see them. 

    3. For enet_lwip, this is a HTTP server. You just need to input the IP address you see on the terminal window and put it on the URL of the browser and you will see the web server content. For enet_tchpecho_server, you can use PC utilities like Hercules or SocketTest to exchange message with the server. It is a echo sever so any message you type send from the client (your PC is the client) will be echoed back by the server. Also look at the app note I pointed out in my early reply. 

  • Hi Charles,

    I'm getting the following errors when trying to run the examples in Debug mode on the TI Launchpad

    Please guide to resolve these issues.

    Thanks,

    Kiran

  • Hi,

      Just wanted to make sure which example you are trying to run. Is it C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\enet_tcpecho_server? Your second screenshot shows it cannot open enet_lwip.out. enet_lwip and enet_tcpecho_server are two different examples. 

      Did you modify the example or you are loading the program as is?

      

  • Hi Charles,

    Yes the example loaded is from the path you mentioned and I was trying to run the examples as is without any modifications.

    I was trying to run both the examples and they were having the same issue of trouble reading address.

    Can you try to debug(run) the example using TI launchpad? Could there be any difference in the version of other repositories added?

    Best Regards,

    Kitanjit

  • Hi,

      I have run these Ethernet example countless times in the past and never have a problem loading and running them. 

      Did you 'import' the project into your workspace? 

     Some suggestion:

     Can you create a new CCS workspace? In the new workspace, import the tcpecho project. 

     Do you have another LaunchPad to try?

  • Hi Charles,

    I created a new CCS workspace and imported the tcpecho project. I'm not getting any error on running in Debug mode now but m not getting any output either (see below)

    No traffic on Wireshark as well.

    I've connected TI Launchpad to my laptop through LAN port (Ethernet) as well as USB cable(Debug ).

    Similar is the case with the example enet_lwip

    Please guide if I am doing anything wrong in running these examples or capturing the IP address/Ethernet data? Or connecting the launchpad?

    Thanks,

    Kiran

  • The following is my COM port connection information under 'Device Manager' :

  • Hi,

      If your COM port is COM3 then you need to open a terminal window with serial connection to COM3. Once you do that you will see the IP address displayed after you run the example.  Enter that IP address in the URL field on your browser on the PC side when you run enet_lwip. You should see the MCU acting as a web server displaying the web content. 

  • Thanks and what about the tcpecho example?

  • Also what serial settings do I need to give in the terminal window to set up the connection besides the ort number,i.e.Baud rate, Data Bits,Stop Bits, Parity etc.?

  • Hi Charles,

    I setup the serial connection COM port as COM3 on Tera Term. I'm getting the following output.

    I can't see the IP address on the display.

    Plz guide.

    Best Regards,

    Kiranjit

  • Also,for the example tcpecho I'm getting the following output on teraterm display.

    How do I get to see the Ethernet traffic on wireshark for this example?

    Following is the way I'm checking with the Launchpad.

    Thanks,

    Kiran

  • Hi Charles,

    I want to check the example 'tcpecho_server' for external PHY device connected to TI launchpad (by making appropriate changes in the example code for external PHY) according to the following connections given in the data sheet of tm4c1292ncpdt.

    SCL_MDC --> SSI2CLK (PD3)

    SDA_MDIO --> SSI2XDAT0 (PD1)

    SPIS_N/ --> SSI2FSS (PD2)

    SPIQ --> SSI2XDAT1 (PD0)

    PME --> PK1

    RST_N/ --> PC6.

    I want to configure the external PHY registers through SPI communication and the data transfer will be through MII interface.

    Please verify the above connections and also, some of these pinouts /connections are not available on the connectors /Booster pack given in the TI Launchpad, so how do I go about it? Are there any alternate pins which can be used for those functions (pins that are available on the connectors/ Booster pack of TI Launchpad? Following pins are not available on the headers:

    PG2,PG3, PG4, PG5, PG7, PQ5, PQ6.

    Thanks,

    Kiran

  • what about the tcpecho example?

    After you find IP the address displayed on the terminal window, you just input that IP address to your PC tcp client application. You can use tera term, Hercules or Sockettest. Below is a SocketTest example. Type in your IP address and port number. The port number used in the example is 23. It is mentioned in the example. 

  • Also what serial settings do I need to give in the terminal window to set up the connection besides the ort number,i.e.Baud rate, Data Bits,Stop Bits, Parity etc.?

    Again, it is all documented in the example. 

  • I setup the serial connection COM port as COM3 on Tera Term. I'm getting the following output.

    You need to use the 115200 for the baud rate and 8-N-1 which means 8bits, No parity and 1 Stop bit. 

  • I want to check the example 'tcpecho_server' for external PHY device connected to TI launchpad (by making appropriate changes in the example code for external PHY)

    The LaunchPad does not support external PHY. It has the integrated PHY. It has no MII interface to the external PHY. 

  • Hi Charles,

    Thanks for your response.

    I setup the serial connection according to above steps. Following is my output.

    I'm still not getting the IP Address; it says waiting for the IP Address.

    I have given TCP/IP port number as 23.

    Best Regards,

    Kiranjit

  • Following is the way I'm checking with the Launchpad.

    Thanks,

    The example is designed to send a DHCP request to the DHCP server on the network. The DHCP server will lease you a IP address. You cannot just connect the LaunchPad and the PC together. Your PC is not a DHCP server. In addition, you cannot just use a regular straight-through Ethernet cable if you want to connect between the board and the PC. You need to use a cross-over cable instead. 

     First, my recommendation is that you run the example on your network. Connect the board and your PC through a Ethernet switch or a router on your network.