mirror of
https://github.com/espressif/esptool.git
synced 2025-10-16 23:06:31 +08:00
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:
@@ -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)()
|
||||
|
||||
|
Reference in New Issue
Block a user