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) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+4
@@ -176,6 +176,10 @@ _copy_firmware board profile:
|
|||||||
if [ -f "$src" ]; then \
|
if [ -f "$src" ]; then \
|
||||||
cp "$src" "$dst.elf"; echo "→ $dst.elf"; \
|
cp "$src" "$dst.elf"; echo "→ $dst.elf"; \
|
||||||
case "$target" in \
|
case "$target" in \
|
||||||
|
xtensa-*) \
|
||||||
|
mise exec -- espflash save-image --chip "$chip" --merge --skip-padding "$src" "$dst.bin"; \
|
||||||
|
echo "→ $dst.bin"; \
|
||||||
|
;; \
|
||||||
thumbv7em-*) \
|
thumbv7em-*) \
|
||||||
mise exec -- rust-objcopy -O ihex "$src" "$dst.hex"; \
|
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; \
|
mise exec -- cargo-hex-to-uf2 hex-to-uf2 --input-path "$dst.hex" --output-path "$dst.uf2" --family nrf52840; \
|
||||||
|
|||||||
Reference in new issue
Block a user