Skip to content

Commit

Permalink
fix(esptool): clear boot control register on ESP32-S3
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdragun committed Jul 16, 2024
1 parent 2dc7d1f commit 296a635
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions esptool/targets/esp32s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ def hard_reset(self):
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)()

Expand Down

0 comments on commit 296a635

Please sign in to comment.