fix(esp32-c3): Disable flasher stub when Secure Boot is active

This commit is contained in:
Radim Karniš
2025-07-30 11:36:58 +02:00
parent 7ba285bb03
commit 1f1ea9a29d

View File

@@ -1626,6 +1626,11 @@ def run_stub(esp: ESPLoader) -> ESPLoader:
"Stub flasher is not supported in Secure Download Mode, "
"it has been disabled. Set --no-stub to suppress this warning."
)
elif esp.CHIP_NAME == "ESP32-C3" and esp.get_secure_boot_enabled():
log.warning(
"Stub flasher is not supported on ESP32-C3 with Secure Boot, "
"it has been disabled. Set --no-stub to suppress this warning."
)
elif not esp.IS_STUB and esp.stub_is_disabled:
log.warning(
"Stub flasher has been disabled for compatibility, "