← Blog
Physical Computing

Dual-Boot OTA Slot Safety on Shared Embedded Silicon

Co-hosting two distinct interactive prototypes on a single M5StickS3 flash chip creates silent bricking hazards unless partition guards and slot-switch affordances are designed together.

Date
November 24, 2026
Reading time
2 min read
Author
Lewis Dong
Topics
Physical Computing · Embedded UX

Hardware prototypes rarely stay on isolated benches. Walkie and On The Beat share the 8 MB flash of one M5StickS3: On The Beat lives in app0 and Walkie in app1. That constraint made embedded safety an ergonomic problem before anyone presses a button. Claude Code wrote most of the code for both projects, including the guard below; I set the rules, reviewed the output and checked the results on the watch.

Why dual-boot slots fail quietly#

  1. Some build targets write outside the app's own partition: a full erase or a filesystem upload aimed at one app can wipe the other.
  2. The wrong app can look like a broken one: if the watch boots into the other app after a restart, a tester can mistake it for a network fault.

A guard on the build, a deliberate switch on the watch#

firmware/guard.py runs before every Walkie build and refuses the erase, uploadfs and uploadfsota PlatformIO targets by name, because each would write outside app1. It does not parse addresses; it simply blocks those targets and points to the project's own flash and boot tools.

On the watch, switching apps is deliberate: both keys held for 3 seconds open a switch confirmation, and only a front-key press then sets the boot partition and restarts. See the Walkie case for the device checks.

Share:

Related Articles

Dual-Boot OTA Slot Safety on Shared Embedded Silicon | Lewis Dong