Remove --no-stub from flash operations for faster transfers

The ROM bootloader (--no-stub) runs at ~62 kbit/s which causes
timeouts on large images. The stub flasher is dramatically faster
and works correctly over QEMU socket connections.
This commit is contained in:
Ryan Malloy 2026-01-30 11:40:54 -07:00
parent 609928ff6e
commit 9fe57005c3

View File

@ -179,7 +179,7 @@ class FlashManager:
start_time = time.time()
args = ["--no-stub", "write-flash", "0x0", str(fw_path)]
args = ["write-flash", "0x0", str(fw_path)]
if not verify:
args.insert(0, "--no-verify")
@ -250,7 +250,7 @@ class FlashManager:
start_time = time.time()
result = await self._run_esptool(
port,
["--no-stub", "read-flash", start_address, size, str(out)],
["read-flash", start_address, size, str(out)],
timeout=300.0,
)
@ -286,14 +286,14 @@ class FlashManager:
# Erase specific region
result = await self._run_esptool(
port,
["--no-stub", "erase-region", start_address, size],
["erase-region", start_address, size],
timeout=60.0,
)
else:
# Erase entire flash
result = await self._run_esptool(
port,
["--no-stub", "erase-flash"],
["erase-flash"],
timeout=60.0,
)