Skip to content

Commit a03158c

Browse files
committed
fix(esp32-c3): Disable flasher stub when Secure Boot is active
1 parent a846531 commit a03158c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

esptool/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,12 @@ def add_spi_flash_subparsers(
846846
"setting --no-stub"
847847
)
848848
args.no_stub = True
849+
elif esp.CHIP_NAME == "ESP32-C3" and esp.get_secure_boot_enabled():
850+
print(
851+
"WARNING: Stub flasher is not supported on ESP32-C3 "
852+
"with Secure Boot, setting --no-stub"
853+
)
854+
args.no_stub = True
849855
elif not esp.IS_STUB and esp.stub_is_disabled:
850856
print(
851857
"WARNING: Stub loader has been disabled for compatibility, "

0 commit comments

Comments
 (0)