Skip to content

Commit

Permalink
fix S3 reset out of flash mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Nov 28, 2023
1 parent 0696abb commit 16655ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions esp_flasher/own_esptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,9 @@ def _check_if_can_reset(self):
def hard_reset(self):
if self.uses_usb():
self._check_if_can_reset()
# issue https://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...')
self._setRTS(True) # EN->LOW
Expand Down

0 comments on commit 16655ba

Please sign in to comment.