Firmware

8 Best RTOS for Microcontrollers in 2026: Footprint, Licensing and Scheduler Picks

Compare the best RTOS for microcontrollers in 2026 by footprint, licensing and scheduler features, so your firmware team can pick the right kernel for.

On this page
  1. Key takeaways
  2. What RTOS for microcontrollers are for
  3. Quick comparison
  4. The best RTOS for microcontrollers
  5. How to choose
  6. How we chose
  7. FAQ
  8. Sources

Key takeaways

  • An RTOS for microcontrollers gives you tasks, queues and timing primitives instead of a hand-rolled superloop.
  • Footprint matters most on parts with tens of kilobytes of RAM; check the kernel and idle memory before committing.
  • Licensing ranges from permissive open source to commercial terms, and that shapes how you ship.
  • Scheduler behavior, priority handling and supported architectures decide how well a kernel fits your silicon.
  • A small bare-metal loop is still fine for simple, single-purpose devices.

What RTOS for microcontrollers are for

A real-time operating system for microcontrollers is a small kernel that runs on your device and manages tasks, timing and shared resources. It gives you a scheduler, inter-task communication such as queues and semaphores, and often a set of drivers and middleware. Instead of writing one large loop with flags and timers, you split work into tasks with priorities and let the kernel decide what runs next.

Firmware teams reach for one when a product has several concurrent jobs: a sensor loop, a communication stack, a user interface and a watchdog, all with different timing needs. It also helps when you want a proven base for networking or file systems rather than building them yourself. If your device does one thing in a tight loop and timing is easy to reason about, a bare-metal design is simpler and cheaper to maintain.

Quick comparison

ToolBest forStarting priceFree plan
FreeRTOSSmall kernels with wide port coverageNot includedNot included
ZephyrLarge projects needing a full ecosystemNot includedNot included
ThreadXCompact kernels with safety-oriented variantsNot includedNot included
RT-ThreadComponent-rich builds on small partsNot includedNot included
NuttXPOSIX-style interfaces on microcontrollersNot includedNot included
RIOT OSIoT devices with networking built inNot includedNot included
Azure RTOSTeams already using Microsoft toolingNot includedNot included
embOSCommercial support and tight toolchain tiesNot includedNot included

The best RTOS for microcontrollers

1. FreeRTOS

  • Official site: https://www.freertos.org
  • Best for: Small kernels with wide port coverage
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Very broad architecture support; Small, well-documented kernel core
  • Cons: Middleware is chosen piece by piece; Configuration needs care on tiny parts

FreeRTOS is a compact kernel built around tasks, queues, semaphores and software timers, with a scheduler that supports preemptive and cooperative modes. It ships ports for a wide range of processor architectures, so a team moving between chips often finds a starting point already in place. The core is deliberately small, and optional libraries such as a TCP/IP stack are added only when a project needs them.

It fits teams that want a minimal kernel and are comfortable assembling their own middleware.

2. Zephyr

  • Official site: https://www.zephyrproject.org
  • Best for: Large projects needing a full ecosystem
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Rich set of drivers and subsystems; Consistent build and configuration tooling
  • Cons: Steeper learning curve; Larger default footprint than a bare kernel

Zephyr is an open source RTOS with a broad set of subsystems, including device drivers, networking, logging and power management, all configured through a single build system. It targets many boards and architectures and treats configuration as a first-class part of the project, so builds are reproducible across a team. Device tree style hardware description keeps board details out of application code.

It suits product teams that expect to grow into networking, secure boot or multiple board variants and want one framework for all of it.

3. ThreadX

  • Official site: https://github.com/eclipse-threadx/threadx
  • Best for: Compact kernels with safety-oriented variants
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Small and fast kernel design; Clear API for tasks, queues and events
  • Cons: Fewer bundled middleware options; Documentation split across repositories

ThreadX is a compact real-time kernel with a small memory footprint and a straightforward API for threads, message queues, event flags and semaphores. It offers preemptive scheduling with priority levels and supports a range of processor families. Variants of the kernel are aimed at safety-oriented certification work, which matters for regulated products.

It fits teams that want a lean kernel and plan to add their own stacks and drivers. Compared with component-rich systems, it bundles less middleware, so you source networking or file systems separately.

4. RT-Thread

  • Official site: https://www.rt-thread.io
  • Best for: Component-rich builds on small parts
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Modular components chosen per project; Kernel scales down for small devices
  • Cons: Configuration can become complex; Some components assume more memory

RT-Thread is an open source RTOS with a small kernel plus optional components for networking, file systems, device drivers and a shell. Its package system lets a project pull in only the parts it needs, and the kernel is designed to scale from small microcontrollers up to larger parts. A configuration tool helps assemble a build for a specific board.

It fits teams that want more than a bare kernel but still care about memory use.

5. NuttX

  • Official site: https://nuttx.apache.org
  • Best for: POSIX-style interfaces on microcontrollers
  • Starting price: Not included
  • Free plan: Not included
  • Pros: POSIX-like API familiar to Linux developers; Broad driver and file system support
  • Cons: Heavier than a minimal kernel; Porting effort on unusual hardware

NuttX is an open source RTOS that offers POSIX-style interfaces, including file descriptors, threads and common system calls, on microcontroller hardware. It includes a wide range of drivers and file system options and supports many boards and architectures. The design goal is to make embedded code look familiar to developers used to Unix-like systems.

It fits teams porting software from a Linux environment or wanting standard interfaces on a small device. Compared with a minimal kernel, it carries more code and has a larger memory baseline, so it is a poor match for the smallest parts. On unusual hardware, expect real porting work for board support.

6. RIOT OS

  • Official site: https://www.riot-os.org
  • Best for: IoT devices with networking built in
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Networking and low-power support in the core tree; Consistent API across supported boards
  • Cons: Smaller ecosystem than larger projects; Fewer commercial add-ons

RIOT OS is an open source RTOS aimed at networked and low-power devices, with networking stacks, radio drivers and power management as part of the project. It provides a consistent API across supported boards and a build system that handles board-specific configuration. The kernel supports multithreading with priorities and inter-task communication.

It fits connected sensors and similar devices where radio and network support are central rather than an afterthought. Compared with larger frameworks, the ecosystem is smaller, and there are fewer commercial add-ons, so teams often contribute fixes themselves. The limit is breadth: for a product that needs heavy middleware, check coverage before committing.

7. Azure RTOS

  • Official site: https://github.com/azure-rtos
  • Best for: Teams already using Microsoft tooling
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Kernel plus companion middleware components; Consistent API style across components
  • Cons: Tight coupling to one vendor ecosystem; Migration path needs planning

Azure RTOS is a family of embedded components built around the ThreadX kernel, with companion pieces for networking, file systems and USB. The repositories are published openly, and the components share a consistent API style, which makes moving between them predictable. It targets a broad set of microcontroller families.

It fits teams already working within Microsoft tooling and wanting an integrated set of components rather than separate projects. The difference from standalone kernels is the bundled family; the honest limit is coupling, since the components are designed to work together and the roadmap follows one vendor.

8. embOS

  • Official site: https://www.segger.com/products/rtos/embos/
  • Best for: Commercial support and tight toolchain ties
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Commercial support options; Integrates with a matching toolchain and debug tools
  • Cons: Commercial licensing terms; Smaller open community

embOS is a commercial real-time kernel from a tools vendor, offering tasks, events, mailboxes and timing services with a small footprint. It is designed to work alongside the same vendor's debug probes, middleware and development tools, which keeps the workflow consistent from kernel to trace. Ports cover many processor architectures.

It fits teams that value vendor support and an integrated toolchain over community-driven development. Compared with open source kernels, the difference is the support relationship and the tighter tooling link; the limit is that licensing is commercial, so budget and legal review are part of the decision. Evaluate the tooling bundle, not just the kernel.

How to choose

Start with memory. Measure the RAM and flash your application can spare, then check the kernel and idle footprint for each candidate on your exact part. A kernel that fits comfortably leaves room for middleware later.

  • Licensing: confirm the terms cover your shipping model before writing code, especially for commercial kernels.
  • Architecture support: check that your chip family has a maintained port and board support.
  • Scheduler features: priorities, preemption modes and timing services should match your task model.
  • Middleware: list the stacks you need, then see which are maintained in the project itself.
  • Learning curve: a small kernel is quick to learn but leaves integration to you.
  • Lock-in: weigh vendor coupling and migration effort for a product with a long life.

How we chose

Tools were selected from official product pages and documentation, looking at fit for small microcontrollers, maintenance activity visible in the project structure, and clear use cases described by each vendor. Selection weighed kernel footprint, licensing model, scheduler features and available middleware. No documentation review was performed, and no benchmarks were run; descriptions reflect what each project states about its own capabilities.

FAQ

Do I need an RTOS for a small microcontroller?

Not always. A single-purpose device with simple timing is often better served by a bare-metal loop. An RTOS helps when you have several concurrent tasks with different priorities and timing needs.

How much memory does an RTOS add?

It depends on the kernel, the configuration and the middleware you include. A minimal kernel is small, while component-rich builds add more. Check the documentation for your exact part and trim unused features.

Is open source always the right choice?

Open source kernels are common in production firmware and give you control over the code. Commercial kernels offer support relationships and integrated tooling. The right choice depends on your team, your legal review and how long the product will ship.

Can I move code between these kernels?

The task and queue concepts are similar, but APIs differ, so porting means rewriting kernel calls and timing code. Choosing early and keeping hardware-specific code separate makes any later move easier.

Sources