Skip to content

Commit

Permalink
Merge branch 'espressif:master' into main_work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Mar 22, 2024
2 parents 3b4a3cf + 1c355f9 commit 8d978f2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions esptool/targets/esp32s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,15 @@ 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
)
try:
# 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
)
except Exception:
# Skip if response was not valid and proceed to reset; e.g. when monitoring while resetting
pass

print("Hard resetting via RTS pin...")
HardReset(self._port, uses_usb_otg)()
Expand Down

0 comments on commit 8d978f2

Please sign in to comment.