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 →
Robomates Firmware

Robomates Firmware

Firmware for the Robomates self-balancing robot platform based on the ESP32 microcontroller. It utilizes field-oriented control (FOC) for brushless motors, sub-GHz radio for robot-to-robot communication, and Bluetooth for gamepad integration in multiplayer gaming environments.

freertos
17
ESP32 Ethernet with LAN8720 Guide

ESP32 Ethernet with LAN8720 Guide

A comprehensive guide and driver implementation for connecting the LAN8720 Ethernet PHY to an ESP32 using the ESP-IDF framework. It focuses on using the internal ESP32 PLL to generate the 50MHz reference clock, effectively avoiding common hardware conflicts with GPIO0 during the boot process.

freertos lwip
43
nRF24 Jammer

nRF24 Jammer

An ESP32-based RF interference tool utilizing multiple nRF24L01 modules to disrupt signals including Bluetooth, Wi-Fi, and Zigbee. It features a web-based control interface, serial terminal support, and optional OLED display integration for standalone operation.

freertos u8g2spiffs
515
Ghost ESP

Ghost ESP

A specialized security auditing and wireless monitoring firmware for ESP32 devices. Built on the ESP-IDF framework and FreeRTOS, it provides tools for BLE wardriving, WiFi deauthentication testing, and device detection for hardware like AirTags and Flipper Zero.

freertos lvglnimblelwip
1,132
InkWatchy

InkWatchy

A modular and highly configurable firmware for the Watchy and Yatchy e-paper smartwatches. Built using ESP-IDF and Arduino, it provides a feature-rich environment including weather charts, calendar synchronization, encrypted data storage, and FreeRTOS-based task management.

freertos littlefs
175

Sonicrypt

An open-source hardware tool for real-time auditory and visual confirmation of Solana blockchain transactions. Built on the ESP32-S3 platform using the Arduino framework, it monitors wallet addresses via WebSockets to provide immediate feedback upon payment finalization.

freertos
11
Starmoon: Open-Source Conversational AI Device

Starmoon: Open-Source Conversational AI Device

A compact, open-source AI-enabled device powered by the ESP32-S3 for real-time voice interaction. It features voice-enabled emotional intelligence, custom AI characters, and a self-hostable backend architecture using FastAPI and Docker.

freertos
544
WT32-SC01 PLUS Smart Desk Companion

WT32-SC01 PLUS Smart Desk Companion

A network-connected desk companion firmware for the ESP32-S3 based WT32-SC01 PLUS touch display. It integrates a real-time clock, OpenWeatherMap weather data, and an online radio player using LVGL for the graphical interface and FreeRTOS for task management.

freertos lvgl
30