I made my first custom PCB with an ESP32-S2FH4R2 (datasheet). Since I also want to use the integrated USB OTG Console of the ESP, I connected GPIO 20 to D+ and GPIO 19 to D-.
When I connect my PCB to my PC, Windows 11 keeps sending me notifications over and over again that the USB device has not been recognized. The Device Manager shows a unknown device:
The strange thing is, when I toggle the reset button while keeping the Boot Button (GPIO 0) pressed, which should bring the ESP in upload mode, the notifications stops popping up. The Device Manager shows "Unknown USB Device (Port reset failed)" continously. In this scenario, the reset button works - it cuts the non-working connection.
Here is my PCB:
Since I ran out of capacitors, C9 is 0.1 μF instead of 10 nF. I hope that is no big deal.
Notice that the PCB gets its power from a solder pad on the other side of the PCB. The USB micro connector doesn't deliver power to the board.
I already rebooted my PC, tried three different USB ports and cables with no success. With an ordered Dev-Bord everything works correctly.
I measured the voltage on the USB micro connector with a multimeter:
D+: 0.3 V
D-: 0.02 V
Voltage on PWM-layer: 3.29 V
Meanwhile, I connected the VBUS-Pin to the Voltage regulator und thus powered the ESP thought the USB Port. The issue was still the same.
UPDATE: The problem was a mirrored fotprint of the cristal. I rotated it 90° on the PCB and it worked - the Port appeared correctly.


