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:
parent
609928ff6e
commit
9fe57005c3
@ -179,7 +179,7 @@ class FlashManager:
|
|||||||
|
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
||||||
args = ["--no-stub", "write-flash", "0x0", str(fw_path)]
|
args = ["write-flash", "0x0", str(fw_path)]
|
||||||
if not verify:
|
if not verify:
|
||||||
args.insert(0, "--no-verify")
|
args.insert(0, "--no-verify")
|
||||||
|
|
||||||
@ -250,7 +250,7 @@ class FlashManager:
|
|||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
result = await self._run_esptool(
|
result = await self._run_esptool(
|
||||||
port,
|
port,
|
||||||
["--no-stub", "read-flash", start_address, size, str(out)],
|
["read-flash", start_address, size, str(out)],
|
||||||
timeout=300.0,
|
timeout=300.0,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -286,14 +286,14 @@ class FlashManager:
|
|||||||
# Erase specific region
|
# Erase specific region
|
||||||
result = await self._run_esptool(
|
result = await self._run_esptool(
|
||||||
port,
|
port,
|
||||||
["--no-stub", "erase-region", start_address, size],
|
["erase-region", start_address, size],
|
||||||
timeout=60.0,
|
timeout=60.0,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# Erase entire flash
|
# Erase entire flash
|
||||||
result = await self._run_esptool(
|
result = await self._run_esptool(
|
||||||
port,
|
port,
|
||||||
["--no-stub", "erase-flash"],
|
["erase-flash"],
|
||||||
timeout=60.0,
|
timeout=60.0,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user