top of page

RTOS Selection for Embedded Applications

  • Writer: Tyler Sangster
    Tyler Sangster
  • Apr 13, 2023
  • 6 min read

Understanding Real-Time Operating Systems in Modern Embedded Design

Selecting the right Real-Time Operating System (RTOS) for an embedded application is one of the most critical decisions engineers face during the development process. This choice affects everything from system performance and power consumption to long-term maintainability and time-to-market. For engineering teams across Atlantic Canada working on sophisticated embedded systems—whether for marine electronics, industrial automation, or IoT applications—understanding the nuances of RTOS selection can mean the difference between project success and costly redesigns.

An RTOS differs fundamentally from general-purpose operating systems like Linux or Windows. While those systems prioritise throughput and user experience, an RTOS guarantees deterministic behaviour, ensuring that critical tasks complete within specified time constraints. This determinism is essential for applications where timing failures could result in system malfunction, safety hazards, or significant financial losses.

Key Selection Criteria for RTOS Evaluation

When evaluating RTOS options for your embedded project, several technical and business factors must be carefully weighed. Understanding these criteria helps narrow down the field from dozens of available options to a shortlist that meets your specific requirements.

Determinism and Scheduling Performance

The primary reason for choosing an RTOS is deterministic task scheduling. Key metrics to evaluate include:

  • Interrupt latency: The time between an interrupt occurring and the ISR beginning execution. High-performance RTOS solutions typically achieve interrupt latencies under 1 microsecond on modern ARM Cortex-M processors.

  • Context switch time: The duration required to save one task's state and restore another. Leading RTOS platforms demonstrate context switch times of 2-5 microseconds on 100 MHz processors.

  • Scheduling jitter: The variation in task execution timing. For applications requiring precise timing, such as motor control or data acquisition systems common in Nova Scotia's manufacturing sector, jitter should be minimised to single-digit microseconds.

  • Priority levels: Most commercial RTOS solutions offer 32 to 256 priority levels, allowing fine-grained control over task precedence.

Memory Footprint and Resource Requirements

Embedded systems often operate under strict memory constraints. The RTOS kernel size varies dramatically across options:

  • Minimal kernels: FreeRTOS and similar lightweight options require as little as 4-9 KB of code space and 200-500 bytes of RAM per task.

  • Feature-rich platforms: More comprehensive RTOS solutions like VxWorks or QNX may require 50-500 KB for the kernel alone, plus additional memory for middleware components.

  • Scalability: Consider whether the RTOS allows you to include only necessary components, reducing the overall footprint for resource-constrained applications.

Processor Architecture Support

Ensure your chosen RTOS supports your target processor family with optimised ports. Critical considerations include:

  • ARM Cortex-M, Cortex-R, and Cortex-A series support

  • RISC-V architecture compatibility, increasingly relevant for cost-sensitive designs

  • Legacy architecture support for system upgrades and long-lifecycle products

  • Multi-core and heterogeneous processing capabilities

Popular RTOS Options and Their Characteristics

The embedded systems market offers numerous RTOS choices, each with distinct advantages. Understanding the strengths and limitations of leading options helps inform your selection process.

FreeRTOS and Amazon FreeRTOS

FreeRTOS has become the most widely deployed RTOS globally, with an estimated presence in over 40% of embedded devices. Its popularity stems from several factors:

  • Licensing: MIT open-source licence with no royalties or runtime fees

  • Footprint: Kernel requires approximately 4-9 KB ROM and minimal RAM

  • Ecosystem: Extensive community support, commercial backing from AWS, and widespread documentation

  • IoT Integration: Amazon FreeRTOS extends the base kernel with libraries for cloud connectivity, security, and over-the-air updates

For Maritime technology companies developing connected devices—whether for aquaculture monitoring systems or smart grid applications serving Nova Scotia Power's infrastructure—FreeRTOS provides an accessible entry point with a clear path to cloud integration.

Zephyr Project

Zephyr, hosted by the Linux Foundation, has gained significant momentum since its 2016 introduction. Key characteristics include:

  • Modern architecture: Built from the ground up with contemporary embedded requirements in mind

  • Extensive driver support: Over 400 supported boards and comprehensive peripheral driver libraries

  • Security focus: Built-in security features and regular vulnerability assessments

  • Bluetooth and networking: Certified Bluetooth stack and robust networking capabilities

Commercial RTOS Solutions

For safety-critical applications or projects requiring professional support and certification, commercial options remain compelling:

VxWorks by Wind River offers aerospace and defence-grade reliability with DO-178C certification credentials. Its proven track record spans decades of deployment in mission-critical systems worldwide.

QNX Neutrino provides a microkernel architecture with exceptional reliability, commonly found in automotive and medical device applications. Its POSIX compliance simplifies porting from Unix-like systems.

ThreadX (now Azure RTOS) delivers a small footprint with safety certifications including IEC 61508, IEC 62304, and ISO 26262. Microsoft's acquisition has strengthened its IoT and cloud connectivity options.

Application Domain Considerations

The optimal RTOS choice varies significantly based on your application domain. Engineers throughout Atlantic Canada work across diverse sectors, each with unique requirements.

Industrial Automation and Process Control

Manufacturing facilities across Nova Scotia, from Michelin's tire plant in Pictou County to numerous food processing operations, rely on embedded systems for process control. These applications typically require:

  • Deterministic response times under 100 microseconds for control loops

  • Industrial protocol support: EtherCAT, PROFINET, EtherNet/IP

  • Long-term availability and support (15-20 year product lifecycles)

  • Functional safety certification for SIL 2 or SIL 3 applications

Marine and Offshore Applications

Nova Scotia's maritime heritage creates unique opportunities for embedded systems in marine electronics, navigation systems, and offshore monitoring equipment. Key requirements include:

  • NMEA 2000 and NMEA 0183 protocol support

  • Low power consumption for battery-operated equipment

  • Robust error handling for harsh environmental conditions

  • Potential Transport Canada and classification society certifications

IoT and Connected Devices

Smart city initiatives and environmental monitoring projects across the Maritimes demand connected embedded systems. RTOS selection should consider:

  • Built-in TCP/IP stack and TLS security

  • MQTT, CoAP, and REST API support

  • Power management features for battery-operated devices

  • Over-the-air update capabilities for remote deployment

Development Ecosystem and Toolchain Integration

The RTOS itself represents only part of the development equation. The surrounding ecosystem significantly impacts development efficiency and project timelines.

Integrated Development Environment Support

Evaluate how well the RTOS integrates with your preferred development tools:

  • IDE compatibility: Support for Eclipse-based tools, IAR Embedded Workbench, Keil MDK, or VS Code

  • Debugging capabilities: Kernel-aware debugging plugins that display task states, queue contents, and semaphore status

  • Trace and profiling: Integration with tools like Percepio Tracealyzer or SEGGER SystemView for runtime analysis

Middleware and Protocol Stacks

Many applications require functionality beyond the basic kernel. Assess the availability of:

  • TCP/IP networking stacks (lwIP, proprietary stacks)

  • USB host and device stacks

  • File systems (FAT, littlefs, proprietary options)

  • Graphics libraries for HMI applications

  • Security libraries and secure boot support

Documentation and Community Support

Comprehensive documentation accelerates development and reduces risk. Evaluate:

  • API documentation quality and completeness

  • Application notes and reference designs

  • Active community forums and knowledge bases

  • Professional training and certification programmes

Licensing, Cost, and Long-Term Considerations

Beyond technical specifications, business factors significantly influence RTOS selection. A thorough analysis should address total cost of ownership and strategic implications.

Licensing Models

RTOS licensing varies widely:

  • Open source (permissive): MIT, Apache 2.0, or BSD licences allow unrestricted commercial use without royalties (FreeRTOS, Zephyr)

  • Open source (copyleft): GPL-based options may require source code disclosure (eCos under certain conditions)

  • Commercial per-seat: Development licence fees ranging from $5,000 to $50,000 annually

  • Commercial royalty: Per-unit fees typically ranging from $0.50 to $5.00 per deployed device

Vendor Stability and Support

For products with multi-decade lifecycles common in industrial applications, vendor stability matters significantly. Consider:

  • Company financial health and market position

  • Support contract options and response time guarantees

  • Source code escrow arrangements for commercial products

  • Migration paths if the RTOS reaches end-of-life

Safety Certification Requirements

Applications in regulated industries require RTOS solutions with appropriate certifications:

  • Medical devices: IEC 62304 compliance

  • Automotive: ISO 26262 ASIL certification

  • Industrial: IEC 61508 SIL certification

  • Aviation: DO-178C DAL certification

Pre-certified RTOS solutions can save months of development time and certification costs, though they typically command premium pricing.

Making the Final Decision: A Structured Approach

With numerous factors to consider, a structured evaluation process helps ensure objective decision-making. We recommend the following approach:

Step 1: Define Requirements — Document your hard constraints (memory limits, processor architecture, certification requirements) and prioritised preferences (footprint, ecosystem, licensing).

Step 2: Create a Shortlist — Eliminate options that fail to meet hard constraints, typically reducing candidates to 3-5 viable choices.

Step 3: Prototype and Evaluate — Build simple proof-of-concept applications on each shortlisted RTOS, measuring actual performance metrics relevant to your application.

Step 4: Assess Total Cost — Calculate comprehensive costs including licensing, development time, training, and long-term support across the expected product lifecycle.

Step 5: Risk Analysis — Evaluate technical and business risks associated with each option, including vendor stability, community health, and migration complexity.

Partner with Embedded Systems Experts

Selecting and implementing the right RTOS requires expertise that spans hardware design, software architecture, and domain-specific knowledge. The decision has lasting implications for product performance, development efficiency, and long-term maintainability.

Sangster Engineering Ltd. brings decades of electronics engineering experience to embedded systems development projects across Nova Scotia, Atlantic Canada, and beyond. Our team has successfully implemented RTOS-based solutions across diverse applications, from industrial control systems to marine electronics and IoT devices. We understand the unique challenges facing technology companies in our region and provide practical, cost-effective engineering solutions tailored to your specific requirements.

Whether you're beginning a new embedded development project, evaluating RTOS options for an existing platform, or seeking to optimise your current implementation, our engineers can help guide your technical decisions. Contact Sangster Engineering Ltd. today to discuss how we can support your embedded systems development needs and help bring your next project to successful completion.

Partner with Sangster Engineering

At Sangster Engineering Ltd. in Amherst, Nova Scotia, we bring decades of engineering experience to every project. Serving clients across Atlantic Canada and beyond.

Contact us today to discuss your engineering needs.

Recent Posts

See All
Power Integrity in PCB Design

Learn essential power integrity techniques for PCB design. Discover how to minimize noise, optimize decoupling, and ensure stable power delivery for reliable circuits.

 
 
 

Comments


Sangster Engineering

©2023 by Sangster Engineering 

bottom of page