SER-21 USB-UART bridge RTS/DTR wired to boot and reset, or not¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | judgement, depends on NET-7 |
Looks at. Bridge RTS/DTR pins, MCU reset and boot pins, intent.
What it catches. A USB-UART bridge (CP2102N, CH340, FT232) next to an MCU whose ROM bootloader is reached over UART: either its RTS/DTR drive the MCU's reset and boot pins (auto-programming) or they do not, and the schematic should say which on purpose.
Why it matters. With auto-programming the flashing tool resets the chip into its bootloader by itself; without it someone presses two buttons for every flash. Wired naively it bites: some terminal programs and the Linux serial driver assert RTS and DTR when a port opens, holding the MCU in reset, which is why Espressif's circuit uses two transistors so that both asserted together do not reset. And the ROM bootloader drives its own UART pins, which matters when they double as something else (B153A: PA9 USART1_TX of the STM32 ROM cut the DUT's USB data).
Example. An ESP32-C3 board with a CP2102N: DTR to GPIO9 (boot) and RTS to EN directly, no transistor pair; opening the port in a terminal with hardware flow control on holds the chip in reset, and the board "does not boot when the serial monitor is open".
How to check. better_erc lists bridges whose RTS/DTR go to an MCU's reset or boot pins, through what, and bridges whose RTS/DTR are unconnected next to such an MCU (NET-7); a human decides which is intended.
Fix. Either Espressif's two-transistor circuit (or the vendor's equivalent), or a note on the sheet that RTS/DTR are deliberately left unconnected and how to enter the bootloader by hand.
References. esptool boot mode, "Automatic Bootloader"; CP2102N §4.3.11 (Modem Control, DTR); AN2606 §50.1 Table 111 (STM32G0B1 ROM bootloader pins); B153 rev B change list (PA9).