2024-11-06 04:45 AM - last edited on 2024-11-06 05:01 AM by Andrew Neil
Hello,
I designed a PCB with an STM32F103C8T6, and I've included the schematic below. I want to program it via USB, so I used designs I found online for the layout. The crystal is 16MHz. When I connect the USB to the computer, it detects a USB connection, but in the bus controller, it says 'Unknown USB Device Error (Device Descriptor Request Failed)'. When I try to connect via USB in STM32CubeProgrammer, no DFU is detected. I checked the supply voltage, and I have 3.3V. I verified that BOOT0 was indeed in a high state (3.3V) when I tried to connect, but it didn't make any difference.
If you have any ideas, thank you in advance.
Best regards,
Jean
2024-11-06 04:58 AM
Hi,
I don't think the pullup R1 is correct. There's usually a 10k pulldown on ID...
I hope that helps.
Kind regards
Pedro
2024-11-06 05:11 AM
@JTAPIE wrote:I used designs I found online for the layout.
Did you check ST's guidance?
AN2586, Getting started with STM32F10xxx hardware development:
AN4879, Introduction to USB hardware and PCB guidelines using STM32 MCUs:
AN3156, USB DFU protocol used in the STM32 bootloader