First principles for embedded and edge software

The application architecture for embedded devices. Structured. Observable.
AI ready.

Twenty-four years of building embedded products taught us the same lesson every time: the RTOS is never the problem — everything above it is. EmbedIQ is the open-source application architecture for embedded and edge devices: Functional Blocks on two planes, fixed contracts between layers, and a record of everything the device does. Humans and AI coding agents build on it together — in weeks, not months.

One codebase. Any chip. Any OS. Raspberry Pi, ESP32, STM32 · Linux, FreeRTOS, bare metal. Application code never touches hardware — the build enforces it.
Observable and compliance-capable by default Every message, state change and fault recorded automatically in a hash-chained .iqtrace. Evidence for IEC 61508, ISO 26262, IEC 62443, EU AI Act.
Device to cloud, out of the box Cloud link, identity, telemetry and firmware update ship as blocks. EmbedIQ Cloud is open source. Our benchmark: device to cloud in under five minutes.
What exists today: v0.3.0 · Phase 2 in progress The engine, Observatory, message bus and library architecture are complete and in production (IQ Sense). Phase 2 is shipping the service blocks on Linux: cloud link (MQTT over TLS), provisioning and GPIO are merged; firmware update (OTA) and the streaming data plane are in build. EmbedIQ Cloud OSS v0.1.0 is published. Next: end-to-end Raspberry Pi demo, then ESP32 and STM32. Clone the repo, three commands, no hardware required.
What developers feel

Four things you stop saying.

“Where did this message even come from?”Every message is typed and every send is recorded. Replay the trace on your laptop and read the answer.
“It only fails on the device.”The same code runs on your laptop first. The simulation HAL is the first target; hardware is the last.
“The video stream froze the controls.”Bulk data rides the data plane. The control bus stays instant, and a slow consumer slows its source — not the system.
“We’re rewriting OTA. Again.”Cloud link, provisioning, telemetry and firmware update ship as blocks. Write only what makes your product yours.
$ ./build/thermostat_host
[ 1.001] boot phase 1 — fb_timer RUNNING
[ 2.001] TX fb_sensor → fb_ctrl MSG_TEMP_READING seq=3
[ 2.002] FSM fb_ctrl.temp_monitor NORMAL → WARNING seq=4
[ 2.003] TX fb_ctrl → fb_cloud MSG_CLOUD_PUBLISH seq=5
[ 2.004] OBS queue_depth=2 source=fb_ctrl
Less “why is the watchdog angry again?”
More “the message order changed at 87°C — found it.”

Build connected devices in weeks, not months.

The problem

The substrate is not the problem.
Everything above it is.

Teams keep rebuilding the same application layer above the RTOS — on every microcontroller project and on every Linux gateway. The problem is structural, not skill-based.

Task spaghetti

Threads, callbacks, flags and globals slowly grow into firmware that only its original author can safely touch.

Same plumbing, every project

OTA, telemetry, watchdog, storage, cloud glue — rebuilt from scratch instead of reused as clean building blocks.

Debugging by archaeology

Too much embedded debugging depends on printf, timing luck, and whoever remembers the original intent.

AI generates code, not architecture

Without strong structure, AI tools just help teams produce inconsistent firmware faster. The structure has to come first.

Why now

This is the right moment to rethink embedded software.

  • → AI coding agents are here — and embedded systems lack the structure agents need to generate reliable firmware. Fixed contracts give them exactly that.
  • → RTOS projects stop at the kernel on purpose. The application architecture above them has always been left to each team — and with Mbed OS archived in 2026, thousands of teams need a new home for it.
The gap has always been real. The timing just got urgent.

RTOS gives you primitives.
Architecture gives you leverage.

EmbedIQ makes embedded software structured, observable and AI-codeable from the architecture up — not as a plugin or an afterthought. Apache 2.0, permanently.
How it is built

Six layers. Two planes. One picture.

Your logic at the top, hardware at the bottom, fixed contracts between every layer. Short messages travel on the Message Bus; video, audio and firmware images travel on the Streaming Data Plane — never on the bus.

Message Bus
Application Functional Blocksyour product logic
Platform Functional Blocksdrivers and services, shipped — cloud link, provisioning, OTA, telemetry
Framework Engineruns every block, delivers every message, records everything (Observatory)
Contractsfixed header interfaces — CI-enforced
HAL · OSALperipherals · threads, queues, timers — one contract, many implementations
Hardware and OSPi · ESP32 · STM32 · Linux · FreeRTOS · bare metal
Data Plane
Walk through the architecture → ARCHITECTURE.md on GitHub

Reuse, don’t rebuild

Every block has the same shape, so the common ones ship with the framework: cloud link, identity, firmware update, metrics, drivers. Write only the blocks that make your product different.

Observe everything, instrument nothing

Because every interaction is a message through the engine, one tap point records all of it — 14 bytes per event, hash-chained, replayable. No printf, ever.

Same code on your laptop and the device

The simulation HAL runs the whole stack with no hardware, in CI. Hardware is the last step, not the first.

AI writes against a contract, not a guess

Typed messages, frozen headers, named rules enforced by CI. An AI coding agent — or a new engineer — has less to assume and the build catches what they get wrong.

Observability is the compliance evidence.

The Observatory records every block lifecycle event, state transition, message and fault automatically, as a 14-byte record in an open, tamper-evident .iqtrace file. Every block carries a safety_class. The audit trail is a by-product of the device running — not a separate system someone has to remember to build. EmbedIQ enables compliance; certifying a product built on it remains the product owner’s responsibility.

IEC 61508 ISO 26262 IEC 62443 DO-178C EU AI Act MISRA C:2023 CycloneDX SBOM

Full compliance map — what is targeted, and what is not →

What's ready now

EmbedIQ

The open-source architecture layer for embedded and edge systems.

Explore →

EmbedIQ | Cloud

Fleet operations, device management, and OTA updates. Invite-only early access.

Request Access →

EmbedIQ | Studio

Device debugging, trace analysis, and AI-assisted root cause. Invite-only early access.

Request Access →
Get involved

The source is open.
Read the code. Run the tests.

Everything is on GitHub. Clone the repo, run the examples on Linux or macOS, read the architecture docs, and see for yourself. No signup needed.

⭐ Star the repo It tells us you care about the problem — and helps shape which targets and blocks we prioritise next.
💬 Tell us what to build Which hardware target do you need? Which Driver FB is missing? GitHub Discussions is where priorities get set.
🐛 File a real bug The engine runs on POSIX today. If something breaks, open an issue. Real behaviour beats design theory every time.
👁 Watch the build OTA, the streaming data plane and the end-to-end Raspberry Pi demo are in flight. Watch → All Activity to follow the commits.
🔀 Contribute Driver FBs, the ESP32 and STM32 HALs, the FreeRTOS OSAL — we need engineers who have shipped production firmware. Read CONTRIBUTING.md.
View the code on GitHub → See the architecture → Apache 2.0 · No account needed to read · GitHub account needed to comment or star
Architecture locked and in production. What counts now is real hardware, real drivers, real bugs. That is what Phase 2 is for.