Getting Started
Start Building with
EmbeddedOS
No hardware required to get started. Every command on the simulator path was run as written before it was published.
Boot the real EoS kernel on QEMU with ebuild sim — no hardware needed
The EmbeddedOS Ecosystem
- Build Tool
ebuild
Creates, builds and simulates EoS projects, analyzes KiCad schematics, and drives flash tools.
- Simulator
EoSim
Registry of 158 platform descriptors and simulation engines. Cortex-M apps run on QEMU through ebuild sim.
- RTOS Kernel
EoS Kernel
The real-time OS kernel. Provides HAL, scheduler, IPC, drivers, and POSIX subset.
- Bootloader
eBoot
Two-stage C bootloader with image authentication, slot management, recovery, and target-specific key configuration.
- Visual Programming
eFlow
Host-side flow prototype with an interpreter, CLI, schema, and examples. Target code generation and visual editors remain future work.
- Edge AI
EAI / ENI
Embedded AI runtime and neural-interface research. Model support and hardware requirements depend on configuration.
- App Ecosystem
eApps
Marketplace catalog and application source for native, web, mobile, desktop, and extension projects.
- IDE
EoStudio
Universal IDE with AI tutor, 3D modeler, game editor, and UI designer.
Choose Your Path
See an EoS Program in Your Browser
~2 minutesThe /demo page is an interactive, illustrative visualisation of what a small EoS program does: GPIO pins toggle and a console prints. It runs in JavaScript in your browser. It does not compile or execute EoS. To run the real EoS kernel with no hardware, use the "Simulator on My Computer" path, which runs it under QEMU.
Prerequisites: A modern browser. Nothing to install.
- 1
Open the Demo
Go to /demo. Pick a board and one of the example programs, then press Run.
- The board view and console are animated by the page itself
- Use it to see the shape of an EoS program: tasks, delays, GPIO, UART output
Note: This is a visualisation, not an emulator. Nothing you see on /demo has been compiled or executed.
- 2
Run the Real Thing
To boot the actual EoS kernel and your own code without hardware, follow "Simulator on My Computer". It takes about 10 minutes on Linux or WSL2.
ebuild init my-blink --template rtos --target stm32f4 cd my-blink && ebuild sim
What's Next
Run EoS on a Simulated Board (QEMU)
~10 minutesebuild creates an EoS project and `ebuild sim` builds it with the EoS kernel for QEMU's Arm Cortex-M3 machine, then boots it and shows the program's output. Every command and output on this page was run on Ubuntu 20.04 (WSL2) with Python 3.12, arm-none-eabi-gcc 9.2.1 and QEMU 4.2.1.
Prerequisites: Linux or WSL2 (verified: Ubuntu 20.04). Python 3.10+, Git, the Arm GNU toolchain and QEMU. Ubuntu 20.04's own python3 is 3.8, which is too old, so step 2 fetches a current Python without root. macOS should work with the same tools but has not been verified for this guide.
- 1
Install the Toolchain and QEMU
sudo apt install git python3-venv gcc-arm-none-eabi qemu-system-arm - 2
Install ebuild and EoSim
ebuild is the EmbeddedOS build tool. EoSim provides the platform registry that `ebuild platforms list` reads. Neither is on PyPI yet, so install them from GitHub. uv supplies Python 3.12 for the virtual environment, with no root needed, so this works on Ubuntu 20.04 too.
curl -LsSf https://astral.sh/uv/install.sh | sh && source $HOME/.local/bin/env uv venv -p 3.12 .venv && . .venv/bin/activate uv pip install "embeddedos-ebuild @ git+https://github.com/embeddedos-org/ebuild" \ "embeddedos-eosim @ git+https://github.com/embeddedos-org/EoSim" ebuild --version # ebuild, version 3.0.1Tip: Already on Python 3.10+ (Ubuntu 22.04 or later)? python3 -m venv .venv works in place of uv. With Ubuntu 20.04's python3 (3.8), the install fails with: requires a different Python: 3.8.10 not in '>=3.9'. Do not run `pip install ebuild`: that name on PyPI belongs to an unrelated project.
- 3
Fetch the EoS Sources
ebuild builds your application against the EoS kernel and bootloader sources. It keeps them in ~/.ebuild/repos.
ebuild setup # [ok] eos: ~/.ebuild/repos/eos # [ok] eboot: ~/.ebuild/repos/eboot # [ok] Setup complete. Repos are ready. ebuild doctor # checks compilers, cmake, ninja and the reposTip: Ran ebuild setup on this machine before? It never pulls an existing clone, so run `ebuild repos update` to bring eos and eboot up to date. An older eos checkout makes `ebuild sim` stop with: sim.yaml not found.
- 4
Create Your First Project
ebuild init my-blink --template rtos --target stm32f4 cd my-blink # my-blink/ # src/main.c <- your application # tests/test_main.c <- unit test target # build.yaml <- ebuild build configuration # eos.yaml <- EoS project configuration (board, kind) # README.mdTip: `ebuild init` is the guide's name for `ebuild new`. The rtos template maps to `ebuild new --template rtos-app`.
- 5
The Generated main.c
The rtos template is a producer/consumer program. It uses an EoS queue, a mutex and two tasks:
static void producer_task(void *arg) { uint32_t seq = 0; while (1) { message_t msg = { .id = seq++, .value = (int32_t)(seq * 10) }; eos_queue_send(g_queue, &msg, EOS_WAIT_FOREVER); eos_task_delay_ms(500); } } static void consumer_task(void *arg) { message_t msg; while (1) { if (eos_queue_receive(g_queue, &msg, EOS_WAIT_FOREVER) == EOS_KERN_OK) printf("[consumer] id=%lu value=%ld\n", msg.id, msg.value); } } - 6
Simulate It
ebuild sim compiles your sources and the EoS kernel for QEMU's lm3s6965evb (Cortex-M3), boots the image and prints its output. The kernel's SysTick and PendSV scheduling are real. The board's peripherals are not modelled.
ebuild sim --timeout 4 # Building stm32f4 application for qemu_cortex_m3 (lm3s6965evb)... # [ok] Image: .../my-blink/_build/sim/firmware.elf # Running on lm3s6965evb (timeout 4s)... # [my-blink] Starting kernel... # [consumer] id=0 value=10 # [consumer] id=1 value=20 # ... # [consumer] id=8 value=90 # [ok] Simulation ran: 10 line(s) of output, stopped after 4sTip: For CI, assert on output: ebuild sim --expect 'id=3 value=40'. It exits non-zero if the text never appears, if the guest exits with an error, or if the image prints nothing.
- 7
Which Boards Can Be Simulated
ebuild sim runs Arm Cortex-M targets: stm32f4, stm32h7, stm32l4, nrf52, nrf52840, rp2040 and raspi-pico, all on the same QEMU Cortex-M3 machine. Other boards, such as esp32, are refused with a message instead of being faked.
ebuild platforms list # 158 EoSim platforms (* = runnable with `ebuild sim`): # adi-aducm4050 arm Analog Devices # ... ebuild sim --platform esp32 # Error: no simulation target for board 'esp32' yet. Boards ebuild sim can run: ... - 8
Debug with GDB
Run the image under QEMU's GDB stub yourself. ebuild does not wrap this step yet.
qemu-system-arm -M lm3s6965evb -nographic -semihosting \ -kernel _build/sim/firmware.elf -gdb unix:/tmp/eos.sock,server,nowait -S & gdb-multiarch _build/sim/firmware.elf \ -ex "target remote /tmp/eos.sock" -ex "break consumer_task" -ex continue # Breakpoint 1, consumer_task (arg=0x0) at src/main.c:39
ESP32: Not Ready Yet
—ESP32 support is not usable end to end today, and this page will not pretend otherwise. You can create an ESP32 project. Building it needs the Xtensa toolchain, which ebuild does not bundle. ebuild sim cannot run ESP32 code. Producing a flashable MCU image from an ebuild project is tracked in ebuild#171.
Prerequisites: If you want to help: an ESP32 DevKit, the xtensa-esp32-elf toolchain and esptool.
- 1
What Works Today
ebuild init my-esp32-app --template rtos --target esp32 # creates the project ebuild doctor # warn xtensa-esp32-elf not installed — no esp32 builds - 2
What Does Not Work Yet
- ebuild build does not yet cross-compile a board image (ebuild#171)
- ebuild sim --platform esp32 is refused; there is no ESP32 simulation target
- ebuild flash <image> --tool esptool calls esptool, but the maintainers have not verified it on hardware
STM32: Simulate Now, Hardware Images Next
—The EoS kernel cross-compiles for Cortex-M4 (STM32F4), and its Cortex-M scheduler is exercised in CI on QEMU. What is missing is an `ebuild build` that turns your project into a flashable STM32 image. Today it builds a host binary, and it does not say so (ebuild#171). Until that lands, simulate with ebuild sim and treat flashing as experimental.
Prerequisites: An STM32 Nucleo or Discovery board and OpenOCD, for when hardware images land.
- 1
Simulate Your STM32 Application
ebuild init my-stm32-app --template rtos --target stm32f4 cd my-stm32-app && ebuild sim - 2
Build the EoS Kernel for Cortex-M4
This is the same build CI runs. It produces the EoS libraries for an STM32F4-class core.
git clone https://github.com/embeddedos-org/eos.git && cd eos cmake -B build/arm -DCMAKE_TOOLCHAIN_FILE=toolchains/arm-cortex-m4.cmake -DEOS_BUILD_TESTS=OFF cmake --build build/arm -j - 3
Flashing (Experimental)
ebuild flash drives OpenOCD, pyOCD, st-flash, nrfjprog or esptool for an image you already have. The maintainers have not verified it on hardware for this guide.
ebuild flash firmware.bin --tool openocd --target stm32f4 ebuild monitor --baud 115200
What's Next
Build eApps (C + LVGL)
~10 minuteseApps is a collection of C applications on the LVGL graphics library. The native build of the app libraries was verified for this guide on Ubuntu 20.04. Running the apps on a desktop window needs SDL2. That step has not yet been re-verified for this guide.
Prerequisites: Git, CMake 3.16+, GCC or Clang. SDL2 (libsdl2-dev) to run apps on a desktop.
- 1
Clone and Build
git clone --recursive https://github.com/embeddedos-org/eApps.git cd eApps cmake -B build -DCMAKE_BUILD_TYPE=Release cmake --build build -j - 2
Desktop Executables (needs SDL2)
With SDL2 installed, standalone executables per app are built when you ask for them. Without SDL2, CMake prints: Skipping eapps_port: SDL2 not found.
sudo apt install libsdl2-dev cmake -B build -DEAPPS_BUILD_STANDALONE=ON cmake --build build -j
What's Next
Hardware Engineer Workflow
~20 minutesStart from a KiCad schematic. ebuild analyze identifies the MCU and peripherals and generates board, boot and build configuration, and you simulate application logic for that MCU family. The eCAD repository's V0–V4 validation gate checks a product's design data and refuses to call anything a pass without evidence. It is honest about the current state: the example product below does not pass yet.
Prerequisites: The simulator path above (ebuild and its virtual environment, still active).
- 1
Get the Designs and the Validator
git clone https://github.com/embeddedos-org/eCAD-Hardware-Products.git && cd eCAD-Hardware-Products uv pip install jsonschema pyyaml python tools/validate_products.py capabilities # which external tools are available here - 2
Analyze a Schematic
From inside eCAD-Hardware-Products, on the eRadar360 schematic:
ebuild analyze --file eRadar360_CAD_Design/hardware/eradar360.kicad_sch # [info] MCU: STM32H7 (cortex-m7) # [info] Peripherals: 2 detected # - usb: J1_usb # - audio: J2_audio # [ok] board: _generated/board.yaml # [ok] boot: _generated/boot.yaml # [ok] build: _generated/build.yaml # [ok] eos_config: _generated/eos_product_config.h # [info] Validation: PASS (0 errors, 3 warnings)Tip: Read the warnings: for this schematic, flash and RAM sizes are not in the design and have to be filled in.
- 3
Validate the Product's Design Data
V0 schema, V1 sanity, V2 invariants, V3 golden and V4 corner checks. Anything that could not be executed is reported as BLOCKED, never as a pass. eRadar360 currently fails V0 (canonical BOM and datasheet contract) and is blocked at V1–V4 (no simulation model, CAD inputs, golden or corner evidence yet):
python tools/validate_products.py validate --product eRadar360_CAD_Design:hardware --output out/ # prints a JSON summary; its verdict_counts are FAIL 1, everything else 0 # bundle: out/bundle.json # the per-gate verdicts are in the product's receipt: python -c "import json; [print(g['gate'], g['verdict']) for g in json.load(open('out/products/eRadar360_CAD_Design__hardware/receipt.json'))['gates']]" # V0 FAIL # V1 BLOCKED # V2 BLOCKED # V3 BLOCKED # V4 BLOCKED - 4
Simulate Firmware for That MCU Family
cd .. && ebuild init radar-fw --template rtos --target stm32h7 cd radar-fw && ebuild simNote: Simulation runs on QEMU's Cortex-M3: it checks kernel and application logic, not your board's peripherals or timing.
What's Next
Once it builds, where to look next
How EmbeddedOS is put together
The full stack, layer by layer, with the diagrams.
→Every component and what it does
Each project, its purpose, and how they depend on each other.
→The component reference pages
Engineering detail for each project, with usage examples.
→Every repository and install command
All EmbeddedOS software repositories, MIT licensed, in one list.
→Pick a stack for your device
Which components you need for the kind of hardware you are building.
→
Quick reference