Skip to content

Add capability-gated ESP32 download reboot - #501

Draft
TurkeyMan wants to merge 1 commit into
masterfrom
agent/esp32-download-reboot
Draft

Add capability-gated ESP32 download reboot#501
TurkeyMan wants to merge 1 commit into
masterfrom
agent/esp32-download-reboot

Conversation

@TurkeyMan

Copy link
Copy Markdown
Member

What changed

  • advertises download-mode reboot support as a driver capability
  • implements classic ESP32 download reboot by holding RTC GPIO0 low before esp_restart()
  • extends /system/reboot with an optional bootloader argument only on capable targets
  • explicitly reports the capability as unavailable on other current system backends

Why

Boards without convenient access to their boot strap controls need a software path into the ROM downloader for recovery and development. Capability gating keeps the command portable rather than assuming every platform supports it.

Validation

  • cherry-picked cleanly onto current master
  • compiled in the successful SmartEVSE ESP32 release image
  • default Linux LDC release build passes with unsupported capability handling
  • verified the classic ESP32 RTC GPIO API and enum values against the installed ESP-IDF 6 headers
  • git diff --check passes

Hardware invocation remains to be smoke-tested on a classic ESP32 board.

@TurkeyMan
TurkeyMan force-pushed the agent/esp32-download-reboot branch from 623c1a9 to d979758 Compare August 16, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant