Research on IEEE1588 protocol and its synchronization algorithm (based on STM32F107 microcontroller and programmed in c language)

Haha, IEEE1588 is inherently difficult. I don’t know whether you are programming based on the V1. or V2. protocol. How to use V1 is relatively simple. It is recommended that you download the source code of IEEE1588 from foreign open source websites, and then migrate the value based on this. I can only give you this bit of information. As a team, we all use other people's open source code to make 1588. It is almost impossible to write it by ourselves. And the key to 1588 is testing, and the testing equipment is super expensive.