cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started with PTP (IEEE 1588)

halbeeee
Associate II

Hello, I want to try to use PTP in my project, but the lack of documentation took me into a dead point. I'm currently using an STM32H755 which support the protocol.

I have a lot of question but as first thing I want to understand the faesability of the project:

Do I need a dedicate hardware? Like a transciever that support the protocol or the mcu support is enough?

Can a mcu can be used as gran master or do i need a dedicated server?

Is there an example of the implementation that i can study?

Even a single answer could be great, and every additional information is welcome!

1 REPLY 1
Piranha
Chief II

> Do I need a dedicate hardware? Like a transciever that support the protocol or the mcu support is enough?

No. Any Ethernet PHY can be used - no special features required for PTP.

> Can a mcu can be used as gran master or do i need a dedicated server?

Any master or slave role can be supported. By the way, master is easier to implement because it doesn't have to adjust it's clock, but STM32 hardware supports everything necessary for both roles.

> Is there an example of the implementation that i can study?

https://github.com/mpthompson/stm32_ptpd

https://github.com/hasseb/stm32h7_atsame70_ptpd

Also be warned about this:

https://community.st.com/s/question/0D50X0000BOtfhnSQB/how-to-make-ethernet-and-lwip-working-on-stm32