From cabc8c1cc0972fa83939e31e10424a3b3840a8b8 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Wed, 8 Apr 2026 13:34:25 -0600 Subject: [PATCH] feat: add espflash save-image for Xtensa boards Generate .bin firmware images for ESP32 boards alongside .elf, matching the existing .hex/.uf2 flow for nRF52840 boards. Co-Authored-By: Claude Opus 4.6 (1M context) --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index 3488071..0ef9689 100644 --- a/justfile +++ b/justfile @@ -176,6 +176,10 @@ _copy_firmware board profile: if [ -f "$src" ]; then \ cp "$src" "$dst.elf"; echo "→ $dst.elf"; \ case "$target" in \ + xtensa-*) \ + mise exec -- espflash save-image --chip "$chip" --merge --skip-padding "$src" "$dst.bin"; \ + echo "→ $dst.bin"; \ + ;; \ thumbv7em-*) \ mise exec -- rust-objcopy -O ihex "$src" "$dst.hex"; \ mise exec -- cargo-hex-to-uf2 hex-to-uf2 --input-path "$dst.hex" --output-path "$dst.uf2" --family nrf52840; \