Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Adding PTP to FreeRTOS+UDP (IEEE-1588)

Posted by hollenweger on January 22, 2015

I'm evaluation to use FreeRTOS+UDP for a new project (probably based on a LPC18xx or LPC43xx). The project needs a precise time synchronization. I would like to use PTP (IEEE-1588). Has somebody experience with integrating PTP in FreeRTOS+UDP? Or is there another possibility?


Adding PTP to FreeRTOS+UDP (IEEE-1588)

Posted by rtel on January 22, 2015

FreeRTOS+UDP (and FreeRTOS+TCP) use standard sockets interfaces, so if you have FreeRTOS+UDP running, and you have some PTP code compiling (I believe there are some open source libraries around) then stitching the two together should be simple. I've never done it myself though.

Regards.


Adding PTP to FreeRTOS+UDP (IEEE-1588)

Posted by heinbali01 on January 23, 2015

Hi Martin,

I did some testing with the Precision Time Protocol (PTP) on a LAN, using FreeRTOS+TCP.

My aim was to use PTP to synchronise playing audio between various MCU's.

These MCU's have their clock from a HCM49, which provides a typical audio frequency of 11.2896 MHz, which finally translates to 44100 Hz. That also dictates the precision that I hoped to reach, deviations less than 22 us (1/F).

My conclusion: PTP can easily be implemented but I encountered a hardware problem: every XTAL's is slightly different, some are faster and others are slower. I can synchronise the clocks but at the end of a 5-minute song the difference had become too big already.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner