Rust Meets Zephyr: Building Safer Embedded Applications
summary
Shows Rust running on Zephyr by building a countdown demo on micro:bit that uses a refresh-driven 5x5 LED matrix and a keyboard-monitor thread communicating over channels; build uses cargo called from west, bindgen-generated C bindings and a bindings whitelist MB_ entry added to expose the display driver. Introduces a safe/unsafe boundary layer because FFI needs unsafe blocks, points out a real bug (16-byte stack buffer -> runtime panic and pointer-lifetime risk), and reports successful build, flash and debug with modest memory use.
AI-written summary · about
chapters (14)
- 0:00Rust and Zephyr integration
- 1:26Why Rust for embedded
- 4:40Rust tooling and Zephyr
- 7:11First Rust app on Zephyr
- 10:27Safe hardware abstraction
- 12:34Project structure and build
- 14:01Countdown app walkthrough
- 21:50Zephyr drivers for Rust
- 23:16Keyboard monitor thread
- 26:07Compile and flash Rust
- 27:34Debugging with Zephyr and Rust
- 29:19Lessons and limitations
- 32:09Future of Rust in Zephyr
- 32:51Q&A
related talks
41mRust Meets Zephyr: Building Safer Embedded Applications
41mWhy Rust and Zephyr Are a Good Fit
42mUpdate on Rust in Zephyr
42mUpdate on Rust in Zephyr
36mUsing Zephyr with Non-C Languages
45mCrabs Flying Kites: Writing a Zephyr Application in Rust
36mIt's Embedded Rust Time
26mIntroducing Rust into a Legacy Embedded System
