fix(esptool): clear boot control register on ESP32-S3

https://github.com/espressif/arduino-esp32/issues/6762
https://github.com/espressif/esp-idf/issues/13287
This commit is contained in:
Peter Dragun
2024-03-11 13:06:23 +01:00
parent e34df69c46
commit 0215786283

View File

@@ -352,6 +352,12 @@ class ESP32S3ROM(ESP32ROM):
if uses_usb_otg:
self._check_if_can_reset()
# Clear force download boot mode to avoid the chip being stuck in download mode after reset
# workaround for issue: https://github.com/espressif/arduino-esp32/issues/6762
self.write_reg(
self.RTC_CNTL_OPTION1_REG, 0, self.RTC_CNTL_FORCE_DOWNLOAD_BOOT_MASK
)
print("Hard resetting via RTS pin...")
HardReset(self._port, uses_usb_otg)()