Does your product need an operating system? And if it does, which one? The question usually comes up early, often before the main processor is chosen. And the answer shapes the hardware, the cost per unit, the power consumption and the software work for years after launch.
There are three common foundations. Bare metal firmware runs one main loop with interrupts and no operating system; it is the simplest and needs the least hardware. A real-time operating system (RTOS) adds a scheduler that runs several tasks with priorities and predictable timing on a microcontroller. Embedded Linux is a full operating system for products that need networking, file systems, displays or large software stacks, and it runs on application processors with more memory. The right choice depends on how many things the product does at once, how strict its timing is, and what it must connect to.
How they compare
| Bare metal | RTOS | Embedded Linux | |
|---|---|---|---|
| Hardware | Small microcontrollers | Microcontrollers with more memory | Application processors with a memory management unit and external memory |
| Timing | Direct control; depends on the code | Predictable scheduling by task priority | Not real time by default |
| Concurrency | One loop plus interrupts | Several tasks with priorities | Many processes and services |
| Software available | What you write and add | Kernel plus middleware for common needs | Large ecosystem of drivers, networking and applications |
| Power and start-up | Lowest, fastest | Low | Higher; longer boot |
| Maintenance | Your own code | Your code plus the RTOS | Kernel and package updates, including security, over the product’s life |
When each one fits
Bare metal
Products with a small number of jobs and simple timing: a sensor that measures and reports, a controller that reacts to a few inputs, a battery device that sleeps most of the time.
RTOS
Microcontroller products that do several things at once and must keep timing under load: reading sensors while running a communication stack and a user interface, for example. Most RTOSes run all tasks in one shared memory space, which keeps them light but means a fault in one task can affect others.
Embedded Linux
Products that need rich networking, a file system, a graphical display, or software that already exists for Linux. Standard Linux expects a processor with a memory management unit (MMU). Ports for microcontrollers without an MMU exist, but they are a special case with real limits, not the normal path.
Combining them
Many products split the work: a Linux processor for connectivity and the interface, and a microcontroller with bare metal or an RTOS for timing-critical control. It adds a board-level interface but lets each part do what it does best.
Questions that decide it
- How many things must the product do at the same time?
- How strict is the timing: microseconds, milliseconds or seconds?
- What does it connect to, and does it need a full network stack or a display?
- What are the power and battery targets?
- How will firmware be updated in the field, and who maintains it after launch?
- What cost per unit can the hardware carry?
How SILBIT develops firmware
SILBIT's engineering team develops firmware on bare metal and with an RTOS for 8-bit and 32-bit microcontrollers, and also works with Linux. The work covers drivers (ADC, timers, UART, SPI, I2C, RS485), middleware and the application layer, wireless integration (Bluetooth, Wi-Fi, GSM, GPS, RF and SoCs) and communication with servers.
Because hardware and firmware are designed in the same team, the processor and the firmware foundation are chosen together. In production, SILBIT programs microcontrollers, memories and SoCs or SOMs, and the functional test checks the firmware version on every unit.
Frequently asked questions
Can Linux run on a microcontroller?
Standard Linux needs a processor with a memory management unit. Versions for microcontrollers without one exist, but they are a special case and usually not the practical choice for a product.
Is an RTOS always better than bare metal?
No. For simple products, bare metal is smaller, easier to verify and uses less power. An RTOS pays off when the product runs several tasks with timing requirements.
Can we change the foundation later?
It is possible, but it usually means a new processor or a large firmware rewrite, so it is worth deciding before the hardware is designed.
Tell us what it needs to do and we will help you choose the foundation.
Request a Quote