Custom PCB with STM32F411 - USB issue
- May 21, 2025
- 4 replies
- 716 views
Hi everyone,
I’ve designed a custom PCB using the STM32F411CEU6 and a USB-C connector, but my laptop (Device Manager) and STM32CubeProgrammer fail to detect it as a DFU device or CDC. The board powers up (3.3V LDO confirmed working), and basic SWD flashing works, but USB fails.
USB-C Schematic:
CC1/CC2: 1kΩ pull-downs to GND (per USB 2.0 Type-C specs).
D+/D-: Connected to PA11/USB_DM and PA12/USB_DP.
VBUS: Filtered through a ferrite bead (BLM21AG121SN1D) and 2.2µF decoupling caps.
Boot Configuration: BOOT0: Pulled to GND via 10kΩ resistor (tested pulling high during reset).
Clock: 8MHz crystal with 30pF load capacitors.
DFU Entry: Tried BOOT0=1 + reset (via button). Get that the "USB device not recognised."
I have attached my schematic and the clock configuration for reference.
