FreeRTOS

202411.00
FreeRTOS is a market-leading real-time operating system kernel designed for microcontrollers and small microprocessors, featuring a small memory footprint and fast execution times. It provides a comprehensive ecosystem of libraries for IoT connectivity, security, and over-the-air updates, supporting over 40 processor architectures including ARM and RISC-V.

Features

  • Preemptive or co-operative multitasking with priority-based scheduling for deterministic performance.

  • Symmetric Multiprocessing (SMP) support for multi-core microcontroller architectures.

  • Native TCP/IP stack (FreeRTOS+TCP) with comprehensive support for both IPv4 and IPv6.

  • Integrated TLS v1.3 support via MbedTLS and WolfSSL for secure encrypted communications.

  • AWS IoT integration for Over-the-air (OTA) updates, Device Shadow, and Jobs management.

  • Support for ARMv8-M TrustZone and ARMv8.1-M PACBTI security extensions for firmware protection.

  • Lightweight IoT messaging via coreMQTT and coreMQTT Agent for shared network connections.

  • Cryptographic identity and key management through the corePKCS11 library.

  • Formal verification of software correctness for core libraries using CBMC proofs.

  • Memory Protection Unit (MPU) support for task isolation and enhanced system reliability.

  • Cellular interface library for seamless mobile network integration.

  • SNTP client for accurate network-based time synchronization across devices.

  • Support for 40+ architectures and 15+ toolchains including latest RISC-V and ARMv8-M.

  • Low power modes and tickless idle functionality for energy-efficient battery operation.

  • Trace and profiling support via Percepio View for real-time application analysis.

Architecture

FreeRTOS utilizes a microkernel design focused on providing a minimal but robust set of primitives for real-time applications. The core kernel is responsible for task management, scheduling, and inter-process communication (IPC) through queues, semaphores, and mutexes. It is designed to be highly portable, with a clear separation between the hardware-independent core and the hardware-dependent port layer. This architecture allows it to maintain a tiny memory footprint, typically around 6K to 12K bytes of ROM, depending on the architecture and configuration.

The system is highly modular, following a “kernel + libraries” approach. While the core kernel handles execution, additional functionality such as the TCP/IP stack (FreeRTOS+TCP), MQTT, and security protocols are provided as optional, loosely coupled libraries under the FreeRTOS-Plus umbrella. This design pattern ensures that developers only include the code necessary for their specific application, optimizing resource usage for constrained embedded devices.

Core Components

  • Task Scheduler: Supports preemptive, co-operative, and round-robin scheduling with priority levels.
  • IPC Primitives: Includes thread-safe queues, binary semaphores, counting semaphores, and recursive mutexes.
  • Software Timers: Allows for the execution of functions at specific times or periodic intervals.
  • Event Groups: Enables tasks to wait for combinations of events to occur.
  • Stream/Message Buffers: Optimized for task-to-task and interrupt-to-task data transfer.

Use Cases

This RTOS is ideal for:

  • Industrial Automation: Managing real-time sensor data and motor control loops with deterministic timing requirements.
  • Consumer Electronics: Powering smart home devices, wearables, and appliances that require low power consumption and small footprints.
  • Medical Devices: Providing a reliable and formally verified foundation for life-critical monitoring and diagnostic equipment.
  • IoT Gateways: Handling complex networking stacks, TLS encryption, and cloud connectivity for edge-to-cloud data routing.
  • Automotive Systems: Implementing non-safety critical telematics and infotainment systems using ARM Cortex-R or Cortex-A processors.
  • Smart Energy: Managing smart meters and grid infrastructure components that require long-term stability and remote OTA updates.

Getting Started

To begin developing with FreeRTOS, it is recommended to clone the main repository using the --recurse-submodules flag, as the kernel and supplementary libraries are maintained in separate Git submodules. Developers should start by exploring the FreeRTOS/Demo directory, which contains pre-configured projects for hundreds of hardware platforms and various compilers (GCC, IAR, Keil). These demos provide a functional baseline that includes the necessary port files and configuration headers (FreeRTOSConfig.h).

Extensive documentation is available on the official FreeRTOS website, including a Kernel Quick Start Guide and a comprehensive API Reference. For community support, developers can access the FreeRTOS Support Forums to interact with the primary developers and the broader ecosystem.

Related Projects

View All Projects →
ClawPuter

ClawPuter

ClawPuter is an interactive pixel-art desktop companion for the M5Stack Cardputer (ESP32-S3) featuring a lobster character with rich animations and real-time weather integration. It leverages the OpenClaw AI gateway for streaming chat, voice-to-text via Groq Whisper, and bidirectional synchronization with a macOS desktop app.

freertos lwip
XiaoClaw: AI Voice Assistant with Local Agent Brain

XiaoClaw: AI Voice Assistant with Local Agent Brain

XiaoClaw is an integrated firmware for the ESP32-S3 that combines voice interaction with a local AI agent. It utilizes the ESP-IDF framework and FreeRTOS to provide a complete system for voice I/O, LLM-powered reasoning, tool calling, and autonomous task execution.

freertos lvglspiffslwip
Batear

Batear

An edge-only acoustic drone detection system built for the ESP32-S3 that uses FFT-based harmonic analysis to identify rotor signatures. It features encrypted LoRa communication between detectors and gateways, with seamless integration into Home Assistant via MQTT.

freertos lwip
Hyperk

Hyperk

Hyperk is a minimalist, high-performance WiFi LED driver for ESP8266, ESP32, and Raspberry Pi Pico W microcontrollers. It provides low-latency control for addressable LEDs like WS2812B and SK6812, featuring native integration with HyperHDR and Home Assistant. The firmware utilizes FreeRTOS and the lwIP stack to manage high-speed UDP streaming and a responsive web-based configuration interface.

freertos lwiplittlefs
Retro Video Synthesizer: ESP32 & Pure Data

Retro Video Synthesizer: ESP32 & Pure Data

A real-time composite video generation system for the ESP32 that renders 3D wireframes, starfields, and geometric tunnels directly to CRT televisions. It utilizes a custom C++ engine controllable via a web interface or Pure Data with MIDI support for live visual performances.

freertos
OpenToys

OpenToys

OpenToys is an open-source framework for building local voice AI companions and robots using ESP32-S3 hardware and Apple Silicon for edge processing. It leverages Whisper ASR, Qwen3-TTS, and MLX-optimized LLMs to provide a fully offline, multilingual conversational experience without cloud dependencies. The project includes a desktop control application built with Tauri and React, alongside specialized Arduino-based firmware.

freertos lwip
Raising Hell — Cardputer ADV Edition

Raising Hell — Cardputer ADV Edition

A Tamagotchi-style virtual pet simulator designed specifically for the M5Stack Cardputer ADV hardware. Built on the ESP32 platform using the Arduino framework, it features complex life stage management, mini-games, and an automated OTA asset provisioning system.

freertos spiffs

MiniOS-ESP

MiniOS-ESP is a lightweight, Unix-like command-line operating system designed for ESP32 microcontrollers with ST7789 display support. Built on a FreeRTOS kernel, it provides process management, a SPIFFS-based filesystem, and advanced networking and mathematical utilities.

freertos spiffs