Repository navigation
feat: add AT+DOWNLOAD to enter ROM download mode - #4
Merged
Merged
Conversation
Reboot the module into the ROM serial bootloader (download mode) by setting the RTC force-download flag, so a host can reflash it over the existing radio UART link without pulling GPIO9/EN. Only available on the RISC-V chips (ESP32-C3, ESP32-S3) which expose RTC_CNTL_OPTION1_REG / RTC_CNTL_FORCE_DOWNLOAD_BOOT; the original ESP32 (Xtensa) has no such register and answers ERROR instead.
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.
Summary
Adds an AT+DOWNLOAD command that reboots the module into the ROM serial bootloader (download mode), so a host can reflash it over the existing radio UART link without pulling GPIO9/EN.
This is the BTWifiModule side of the EdgeTX serial-passthrough flashing flow: EdgeTX exposes a passthrough port and the host sends AT+DOWNLOAD + esptool to reflash the ESP32 in place.
Implementation
Testing