You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature allows updating the bridge firmware over the same USB cable without physical BOOT/RESET access.
Configure the magic baud in menuconfig under **Bridge Configuration** (`CONFIG_BRIDGE_DOWNLOAD_MAGIC_BAUD`, default `1200`).
Set to `0` to disable. Rebuild and flash after changing the value. The host `bit_rate` must match exactly.
To trigger download mode from the host (adjust `PORT` and baud if configured differently):
```bash
python3 -c "import serial; s=serial.Serial('PORT', 1200); s.close()"
```
The bridge chip (ESP32-S2 or ESP32-S3) can reset **itself** into ROM download mode when the host sets the USB CDC port to a configured magic baud rate and then closes the port. This allows updating EUB firmware over the same USB cable without physical BOOT/RESET access.
58
+
59
+
The magic baud **arms** the reset; clearing DTR on port close **fires** it. The bridge then sets `RTC_CNTL_FORCE_DOWNLOAD_BOOT` and restarts. The ROM bootloader exposes a USB download interface on the same cable. This affects the **bridge MCU only**. While the bridge application is running, DTR/RTS on this port still drive the target's BOOT and RST lines; they are unrelated to this self-reset path except that clearing DTR is what fires it once armed.
60
+
61
+
Do **not** use the magic baud for normal target serial traffic. Opening the CDC at that rate and then clearing DTR (port close, or a host reset sequence that deasserts DTR) puts the **bridge** into download mode instead of communicating with the target.
62
+
63
+
Configure the magic baud in menuconfig under **Bridge Configuration** (`CONFIG_BRIDGE_DOWNLOAD_MAGIC_BAUD`, default `1200`). Set to `0` to disable. Prefer a baud that host tools will not use for the target. Rebuild and flash after changing the value. The host `bit_rate` must match exactly.
64
+
65
+
To trigger download mode from the host, adjust `PORT` and baud if configured differently.
66
+
DTR must be asserted while the magic baud is set, then cleared to fire the reset.
67
+
`pyserial` asserts DTR on open by default, so closing the port is enough:
0 commit comments