Quality RTOS & Embedded Software

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


Real Time Clock

Posted by Chris Strahm on November 19, 2008
Does FreeRTOS have anykind of RTC? I was looking through the code and I see the xTickCount, but not much else. When dealing with file systems and Enet code, there is often a need for date/time. It would be great if the OS had a routine to generate date/time with software only using a cummulative millisecond counter, and also the ability to interface to RTC on the MCU. Anything like that?

RE: Real Time Clock

Posted by MEdwards on November 19, 2008
Real time clocks are very specific to the hardware. You would have to add in your own implementation. Most micros don't have real time clocks, and even if they do there is no retention of time during power cycles.

RE: Real Time Clock

Posted by Chris Strahm on November 20, 2008
>> You would have to add in your own implementation.

I think that's what I'll do. I can't see handling Enet and a file system without it. Both need real time. Nearly all of the MCU's I've worked with in the last 5 years have all had RTCs. They all have provisions for battery backup too. Having different ports to handle the registers in different MCUs is no different than handling different timer regs. It really isn't very much code.

[ 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.


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


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