Skip to content

Commit

Permalink
Reset S3 out of flashing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Dec 9, 2023
1 parent f0c6492 commit d249798
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esptool/targets/esp32s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ def hard_reset(self):
uses_usb_otg = self.uses_usb_otg()
if uses_usb_otg:
self._check_if_can_reset()
# github.com/espressif/arduino-esp32/issues/6762#issuecomment-1829942230
# Clear "Force Download Boot" flag, otherwise we keep resetting to boot mode
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 d249798

Please sign in to comment.