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.

CCS/EK-TM4C129EXL: EK-TM4C129EXL: UDP.NTP implementation

Part Number: EK-TM4C129EXL

Tool/software: Code Composer Studio

Hey,

we are absolute beginners in µc programming and have couple questions. 

we are trying to get the current time from an NTP server and display it on our µcboard using an the BoosterPack MK2 (the display module)

we are looking for an implementation to send and receive UDP.NTP packets using ethernet. (board connected to pc via ethernet)

how do we send and receive these packets?

which driverlib functions are necessary, which headers do we need to include?

found this implementation for an arduino board, but we are not sure how do apply it on our board..... 

https://www.arduino.cc/en/Tutorial/UdpNtpClient

trans.gif

We are thankful for any advice and help!

  • Hello,

    It sounds like you are starting by using TivaWare which is generally a very good start in almost all cases. But unfortunately, we don't really have any UDP examples for TivaWare. If you want to use TI-RTOS for TivaC, you could look at their example for UDP Echo which is part of their Network examples for Ethernet.

    We have had a few community members work at implementing UDP, and I could share info like that, but if you are brand new to programming it will be very complex for you.

    Really if you need UDP, then you should probably use TI-RTOS for starters as they have a full example available.
  • Hi Ralph, 

    we finally found out how to download TI-RTOS and found the UDP-ECHO example. We tried to run the example with our board connected to a pc via ethernet but it would not work and we don't know what we're doing wrong.... 

    in the EK_TM4C129EXL.c file we tipped in our MAC address (line 211). What are we doing wrong or what is missing in order to receive the current time via ethernet on our board?

    thanks!

  • Did you attempt to run the example unchanged? Do you have a DHCP Server on the network? This is needed for the example.

    Todd
  • Did this get resolved?

    Todd

    [Update: Marking this as TI Thinks Resolved because of inactivity. If the original poster feels otherwise, please post a response.]

  • Hi Todd!

    no, it still hasn't gotten resolved!

    we changed our task for the moment, we now just want to get an external rtc running on the board, using i^2c, to get an accurate time, no synchronisation via internet...

    best regards