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.

Connecting TM4C129X to LAN via ethernet

Other Parts Discussed in Thread: EK-TM4C1294XL

Hi all,

I am a beginner in the world of Embedded Systems, having done a few projects but none using the Ethernet controller.

I have a TM4C129X board that I want to connect to local network. The idea is to Telnet/SSH the board using any of the computer, validate the credentials and log into the board, write some commands to get the status info as well as switch on/off some modules connected to the board.

Can someone please guide me the steps to do it? I am really stuck and would really appreciate all the help. Thanks.

  • Hello Husnain,

    I would first suggest understanding basic Ethernet examples before attempting anything complex.

    There is a Serial to Ethernet which uses a Telnet Port

    www.ti.com/.../spma072.pdf

    But for what you want to do, I would strongly suggest first checking qs_iot.

    Regards
    Amit
  • Hi Amit,
    Thanks for the reply. I'll start studying the qs_iot example.
    Can you please also suggest me in baby steps what I'd need to do to accomplish the task? Like what docs I should read, what should I implement first for the project, etc. etc. Thanks a lot.

    Regards,
    Husnain
  • Hello Husnain

    Evaluate qs_iot to begin with, to see if it meets the requirement (looks like that it is indeed meeting the requirements)

    Regards
    Amit
  • Hi Amit,

    Thanks a lot for the suggestion. I have been reading and working on the enet_io example for my microcontroller. I have integrated it into my project. However, I am encountering a problem that I am not able to understand.

    In the project there is a folder called "fs" that has all the html files that I thought are loaded into the microcontroller. So when I wanted to implement my own features, I edited those files including my own fields, but when I try to connect to the server by typing its IP address, the same unedited TI page loads. I tried removing the folder altogether and then compiling/running it, but the result is same. Can you please let me know why is it so? and how can I use my own html pages in the project? Thanks.

    Regards,

    Husnain  

  • Hello Husnain

    You would need to run the makefsfile utility in TivaWare D:\ti\TivaWare_C_Series-2.1.2.111\tools\bin folder

    Instructions on how to do it are as part of the Tools User Guide.

    Regards
    Amit
  • HI ,

    Thanks a lot for the help. It worked and now I have finalized the Ethernet part of my project. Wouldn't have been possible without you.

    For the next part, I want to implement an SD card driver. I just want to store some files on the SD card from the PC and then transfer them from the controller to an FPGA connected to it. Would you please let me know where to start? I have gone through the documentation and the theoretical material of how the SD card is interfaced via SPI. Have also read elm-chan.org/.../mmc_e.html

    The SD card example with the board is doing something completely different. Please help me start.

    Regards,

    Husnain
  • Hello Husnain,

    SD Card Driver example from the TM4C129 EVM will be a good starting point.

    D:\ti\TivaWare_C_Series-2.1.2.111\examples\boards\dk-tm4c129x\sd_card

    The drivers for the EK-TM4C1294XL exists in TivaWare, so it should be replacing the existing driver in the above example with the LaunchPad specific file.

    Regards
    Amit
  • Hi Amit,

    I am using DK-TM4C129X board.

    Regards,
    Husnain
  • Hello Husnain

    Then the example should work out of the box

    Regards
    Amit