BKF-11 USB VBUS joined to a system rail¶
| Severity | Status | Implementation |
|---|---|---|
| warning | planned | mid, depends on NET-5, CFG-2 |
Looks at. Power sources of the rail, USB connector roles.
What it catches. A USB connector's VBUS tied straight to a system rail that has another source (a barrel jack, a battery boost, a second USB port), with no diode, ideal diode or switch between them, or a board that can act as host on a port wired as a device.
Why it matters. USB 2.0 forbids a device from sourcing current on VBUS at its upstream port at any time. A board that feeds its own 5 V into the host's VBUS fights the host's supply when both are on and back-powers the host port when the host is off; some hosts detect it and shut the port down, others are damaged. The D+ pull-up must also come from VBUS, so a self-powered device does not signal "attached" to a host that is off.
Example. A data logger powered from a 5 V barrel jack with the USB-C receptacle's VBUS tied to the same +5V: plugged into a laptop, both supplies drive VBUS; with the laptop asleep, the logger powers the laptop's port.
How to check. VBUS pins of USB connectors (NET-5) whose net has another source; ports declared as host or dual-role in the project need a switch either way.
Fix. An ideal-diode or load switch between VBUS and the rail (or a power-path controller), VBUS sensing through a divider for "attached", and the D+ pull-up derived from VBUS.
References. USB 2.0 §7.2.1 "Classes of Devices" ("No device shall supply (source) current on VBUS at its upstream facing port at any time"), §7.1.5.1 (D+/D− pull-up powered from VBUS); SLVAE57 §5 "Reverse Polarity Protection vs Reverse Current Blocking".