USB-17 Micro-B or Mini-B ID pin floating on an OTG port, or wired on a device-only port¶
| Severity | Status | Implementation |
|---|---|---|
| suggestion | planned | mid, depends on CFG-2, NET-12 |
Looks at. ID pin, port role.
What it catches. The ID pin of a Micro-AB/Mini-AB receptacle left open on a port meant to be On-The-Go, or the ID pin of a device-only port wired to something.
Why it matters. The ID pin is how an OTG controller learns which plug is in: a Micro-A plug ties ID to ground (< 10 Ω, become host), a Micro-B plug leaves it open or above 100 kΩ (stay device). If the receptacle's ID pin is not wired to the controller's ID input (with its pull-up), the board never becomes host with an OTG adapter. On a device-only port the pin has no function; wiring it to ground or to a GPIO only suggests a feature that is not there.
Example. An STM32F4 board with a Micro-AB receptacle and OTG_FS in the firmware plans, ID pin left unconnected: an OTG cable to a USB stick does nothing.
How to check. ID pins of Micro/Mini receptacles: open while the project or the MCU pin function (OTG_FS_ID) says OTG, or connected while the port is device-only.
Fix. OTG: ID to the controller's ID input with its pull-up, and a VBUS switch for host mode; device-only: leave it open and use a Micro-B receptacle.
References. Micro-USB §4.2, Table 4-2 (ID: Micro-A plug to GND, Micro-B open or > 100 kΩ, Ra_PLUG_ID 10 Ω, Rb_PLUG_ID 100 kΩ); AN4879 §3.3 (OTG applications through embedded PHY); Wikipedia, USB hardware "USB On-The-Go connectors".