Repository navigation
Conversation
Firmware that reboots into download mode over USB sets RTC_CNTL_FORCE_DOWNLOAD_BOOT, which survives every reset except a power-on, so the device stayed in download mode after flashing or `espflash reset`. esptool clears it before a hard reset.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Firmware that reboots an ESP32-S3 into download mode over USB (TinyUSB's DFU or console, or a custom vendor request) sets
RTC_CNTL_FORCE_DOWNLOAD_BOOT. The bit survives every reset except a power-on, so after flashing orespflash resetthe chip boots straight back into download mode. esptool clears it before a hard reset (esptool/targets/esp32s3.py, see espressif/arduino-esp32#6762); this does the same before the hard and watchdog resets, logging and ignoring a failed write so the reset still happens.Tested on an ESP32-S3-Zero over USB-Serial-JTAG, with firmware that sets the bit and resets into the ROM loader:
espflash resetespflash write-binOnly the ESP32-S3, as in esptool. The ESP32-S2 has the same bit but I can't test it.