Skip to content

Commit 1f1ea9a

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

esptool/cmds.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,11 @@ def run_stub(esp: ESPLoader) -> ESPLoader:
16261626
"Stub flasher is not supported in Secure Download Mode, "
16271627
"it has been disabled. Set --no-stub to suppress this warning."
16281628
)
1629+
elif esp.CHIP_NAME == "ESP32-C3" and esp.get_secure_boot_enabled():
1630+
log.warning(
1631+
"Stub flasher is not supported on ESP32-C3 with Secure Boot, "
1632+
"it has been disabled. Set --no-stub to suppress this warning."
1633+
)
16291634
elif not esp.IS_STUB and esp.stub_is_disabled:
16301635
log.warning(
16311636
"Stub flasher has been disabled for compatibility, "

0 commit comments

Comments
 (0)