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.

PTP on TM4C129 Launchpad

Has anyone successfully gotten PTP to run on the TM4C129 Launchpad?  I've looked at the Stellarisware example, however it's not a straight forward port over.  I'd like to make use of the internal IEEE1588 support of the internal Ethernet controller.

  • Hello Brent,

    I don't think we have a working example of PTP for TM4C129x.

    I am not an expert on this subject, but from my understanding the necessary blocks for a software implementation of PTP are
    * TCP/IP stack (to handle IP and UDP packets) and
    * Software that runs on top of the TCP/IP stack (to handle the information in the UDP packets).
    The hardware support on TM4C129x will improve the precision of time synchronization.

    In TivaWare, lwIP or uIP can be used as the TCP/IP stack. An open source ptpd source code, that could handle the ptp packets, is present in the folder "<TivaWare_Install_Directory>/third_party/ptpd-1.1.0". Looks like the ptpd source code has been ported to work on TM4C129x, but I am not able to find any example code to demonstrate it's use. I don't think the ptpd implementation uses the hardware support on TM4C129x. But the software implementation is supposed to have a precision range in milli-seconds. So depending on the application, the hardware support might not be needed.

    Thanks,
    Sai
  • Stellaris Sai said:
    I am not an expert on this subject, but from my understanding the necessary blocks for a software implementation of PTP are
    * TCP/IP stack (to handle IP and UDP packets) and

     Hi Sai, I got here to get an eye, I see this as interesting over noise. but I go away again soon...

     PTP is an independent daemon running on top of TCPIP stack so no TCP or UDP nor ICMP are needed, just PTP daemon. Hardware decoding is more accurate than software and give nanosecond time sync precision

     example of thirdy part is working well as is and I measured good performance low jitter, but don't ask me for no more solution on this forum of screaming kids...

     here a reference then on IEEE site other information can be read free also if not associated to.

    http://www.ieee1588.com/index.html

    Stellaris Sai said:
    But the software implementation is supposed to have a precision range in milli-seconds. So depending on the application, the hardware support might not be needed.

     Software implementation in range of under millisecond is achieved on tcpip by NTP on ICMP protocol too. If PTP hardware is present on net PHY (not Ethernet controller) precision pulse are received and managed to nanosecond domain..

      Sorry I got away from TI  due to bad policy of supporting kid intermixed with professional.

    So sorry Brent, here I got offended by many worst kid coming here to ask have homework solved for free... Then TI can ask help to people is supporting.