WASM on Zephyr: Securely Running Code in Any Language
summary
WASM runs on Zephyr using WAMR (WebAssembly Micro Runtime) with an interpreted runtime of about 85 KB interpreter, not JIT or AOT by default, so performance and flash cost are real tradeoffs. Demo loads a 452‑byte wasm module over CoAP/base64 to a device (an NRF52840 + ESP32 demo) and calls an imported alert when temperature crosses a threshold. Communication is limited to primitives or shared linear memory, debug support is minimal, and wasi/component work is ongoing to expose drivers safely.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:41What is WebAssembly
- 10:15WASI and Component Model
- 11:43Why use WebAssembly on microcontrollers
- 19:10WASM attributes for embedded
- 23:03Introducing WebAssembly Micro Runtime
- 25:34Demo setup and compilation
- 26:58Running WASM on device
- 30:10Cross-environment WASM
- 33:45Q&A








