• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • 5G
    • Automotive
    • Connectivity
    • Consumer Electronics
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Security
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • EE Training Days
    • FAQs
    • Learning Center
    • Tech Toolboxes
    • Webinars/Digital Events
  • Resources
    • Design Guide Library
    • DesignFast
    • LEAP Awards
    • Podcasts
    • White Papers
  • Videos
    • EE Videos & Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

An Open Source RTOS for IoT

September 24, 2018 By Scott Thornton 2 Comments

An operating system (OS) is software that supports essential computer functions by managing software and hardware in a computer system. An embedded OS is typically tailored for a specific system and is usually as small as is necessary to do its job. You can find OSes in smartphones, routers, smart watches, game consoles, Alexa/Google Home, and many other devices. Zephyr™ is a microcontroller OS that has been developed primarily for the Internet of Things (IoT) and supports multiple architectures. Zephyr has roots in a Real-Time OS (RTOS) created by Wind River in 2015, called the “Rocket OS,” which was designed for resource-constrained systems. In 2016, WindRiver transferred Rocket OS into the Zephyr project managed by the Linux Foundation as open source.

Zephyr is also an open source project to create a free, independent OS that operates in a tiny memory footprint, running in as low as 8k. The Linux Foundation hosts Zephyr under a permissive Apache 2.0 license. [i] Some IoT needs an RTOS that can perform on a predictable schedule, with priority on getting the most important tasks completed on time. Smart devices are becoming more complicated and challenging to manage. Devices with multiple sensors, processes, and connectivity may need to perform specific tasks on time and be able to prioritize tasks to a time-sensitive goal.[ii]

Zephyr open source RTOS
Figure 1: The Zephyr system architecture. (Source: Zephyr.org)

Any operating system for an IoT device would need to consume as few resources as possible for cost- and power- constrained resources, but also capable of high-performance connectivity. The Zephyr RTOS is highly configurable and modular, with statically allocated memory and resources, and no “user space” or dynamic runtimes. Zephyr supports IoT across several architectures.

Zephyr prioritizes the system layer for IoT terminal devices such as sensors, wearables, and other small connected objects. At the same time, Zephyr is a secure system, offering memory protection support as of version 1.1 released in early 2018. The Zephyr kernel supports several architectures, including the Intel x86, ARM Cortex -M, NIOS II, ARC, and RISC-V. [iii] As of this writing, Zephyr is supported on 113 boards and two shields, with more on the way.[iv]

Zephyr support presently includes Bluetooth, Bluetooth LE 5.0, Ethernet, 802.15.4, Wi-Fi, IPv4/IPv6, 6LoWPAN, Thread, and NFC.[v] As with the Linux OS, developers can change Zephyr to suit their needs. The Zephyr community encourages successful changes to be contributed back to the project.

The Zephyr project community is made up of developers from the member organizations and the general community involved in software development as part of the Zephyr project. Today, Zephyr has a healthy and diverse community. From 2016 to 2018, Zephyr’s repositories had grown from five to fifteen, authors from 80 to 354, and commits from 2,806 to 23,324. Organizations involved include Intel, Nordic Semiconductor, Linaro, Synopsys, Google, NXP, Tencent, Acer, Sony, STMicroelectronics, and many others.

Design and technical details

Zephyr is a highly configurable and modular OS that implements memory protection (even for platforms without an MMU/MPU), uses Device Tree Support (DTS) only during compile time, provides fully featured networking support, offers non-volatile storage support, virtual file system interface with NTSS and FATFS support, an extensive suite of kernel services, and many other features. Zephyr includes support for the Thread protocol, as well.

Zephyr open source RTOSZephyr is a library-based OS; the application code and the kernel are united in the same binary compilation. According to Geoffrey Le Gourrierec, who writes the Linux Embedded blog, Zephyr has only one address space, and “there is no notion of privilege level.”[vi] He goes on to state that one selects features before compilation so that only the bare necessities are used, with no loss of performance due to contextual changes, and a decrease in the size of the memory footprint. However, on a remote device that needs to be updated, you cannot change a single module, but have to flash a whole new binary image to the device.

Zephyr has high ambitions, and the list of boards that support it is getting longer. Host machines include both Linux and Windows machines. Zephyr has excellent documentation and a complete System Development Kit (SDK). Zephyr’s future includes support for LoRa, CanBus, enhanced sensor support, MIPS support, and ecosystem tools that include tracing, profiling, 3rd party debugging support, and much more. It’s worth taking a look at Zephyr. To learn how to contribute, visit https://www.zephyrproject.org/community/how-to-contribute

References

[i] https://docs.zephyrproject.org/latest/introduction/introducing_zephyr.html

[ii] https://software.intel.com/en-us/articles/introduction-to-the-zephyr-real-time-operating-system-rtos-with-the-intel-quark

[iii] https://www.zephyrproject.org/presentations/zephyr-project-overview-elc-openiot-summit-north-america-2018/

[iv] https://docs.zephyrproject.org/latest/boards/boards.html

[v] https://www.zephyrproject.org/what-is-zephyr/

[vi] http://www.linuxembedded.fr/2017/04/decouverte-de-los-zephyr/

Filed Under: Applications, Embedded, Featured, IoT, microcontroller, RTOS Tagged With: basics, FAQ

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured Contributions

Five challenges for developing next-generation ADAS and autonomous vehicles

Securing IoT devices against quantum computing risks

RISC-V implementation strategies for certification of safety-critical systems

What’s new with Matter: how Matter 1.4 is reshaping interoperability and energy management

Edge AI: Revolutionizing real-time data processing and automation

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center

EE ENGINEERING TRAINING DAYS

engineering
“bills
“microcontroller
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

Footer

Microcontroller Tips

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy