FreeRTOS

<\/script>\n
'; }, get iframeSnippet() { const domain = '{ SITE_DOMAIN }'; const type = '{ embed_type }'; const slug = '{ embed_slug }'; return ''; }, get activeSnippet() { return this.method === 'script' ? this.scriptSnippet : this.iframeSnippet; }, copySnippet() { navigator.clipboard.writeText(this.activeSnippet).then(() => { this.copied = true; setTimeout(() => { this.copied = false; }, 2000); }); } }" @keydown.escape.window="open = false" @click.outside="open = false">

Embed This Widget

Theme


      
    

Widget powered by . Free, no account required.

A widely-used open-source real-time operating system for embedded systems, supported by many BLE SoC vendors.

FreeRTOS

FreeRTOS is a widely deployed open-source real-time operating system for embedded microcontrollers, used as the application RTOS in several BLE SDK platforms. While FreeRTOS itself does not include a BLE stack, chip vendors integrate it with their proprietary or open-source BLE host/controller implementations.

FreeRTOS in BLE Development

In a typical BLE product using FreeRTOS, the architecture looks like:

  • FreeRTOS kernel: Task scheduling, semaphores, queues, timers, memory management
  • Vendor BLE stack: Runs as one or more FreeRTOS tasks (e.g., BLE Host task, BLE Controller task)
  • Application tasks: User firmware running alongside the BLE stack, communicating via FreeRTOS queues and events

This architecture contrasts with Zephyr RTOS, which integrates the BLE stack natively into the OS. With FreeRTOS, the BLE stack is a separate library layered on top of the RTOS.

SDKs Using FreeRTOS

SDK Vendor BLE Stack
ESP-IDF Espressif Bluedroid or NimBLE (host) + proprietary controller
SimpleLink Texas Instruments TI BLE5-Stack
STM32CubeWB STMicro ST BLE Stack (binary)
nRF5 SDK (legacy) Nordic SoftDevice (binary)

On Espressif's ESP32 family, FreeRTOS is the default RTOS. The ESP-IDF framework provides two BLE host stack options: Bluedroid (Android-derived, full-featured) and Apache NimBLE (lighter, recommended for BLE-only projects). Both run as FreeRTOS tasks and expose callback-based APIs.

FreeRTOS vs Zephyr for BLE

Aspect FreeRTOS Zephyr
BLE stack integration External library Native, unified
Configuration SDK-specific Kconfig (standardized)
Hardware portability SDK-specific Devicetree (600+ boards)
BLE Mesh support SDK-dependent Built-in
LE Audio support Limited Full (Nordic NCS)
Community Large (general embedded) Growing (BLE-focused)
License MIT Apache 2.0

Choosing FreeRTOS

FreeRTOS is a strong choice when:

  • The team has existing FreeRTOS expertise and codebase
  • The target SoC vendor's SDK is FreeRTOS-based (ESP-IDF, SimpleLink)
  • The project needs Wi-Fi + BLE combo (ESP32 family excels here)
  • BLE is a secondary feature alongside a complex application

For projects where BLE is the primary feature, especially those requiring Bluetooth Mesh, LE Audio, or Direction Finding, Zephyr's integrated BLE stack typically provides a smoother development experience.

Related Terms

Frequently Asked Questions

Our glossary covers 90+ BLE technical terms organized by category. Each term includes a definition, related terms, and links to relevant chips and guides.