cancel
Showing results for 
Search instead for 
Did you mean: 

USB DFU not working on minimal STM32G431 setup

g431
Visitor

Hi,
I'm working on my first STM32 project and am trying to get the USB interface working for DFU. I'm using an STM32G431CBU6 and am following the schematic from this dev board (with some modifications):
https://github.com/WeActStudio/WeActStudio.STM32G431CoreBoard/blob/master/Hardware/WeAct-STM32G431CoreBoard_V10_SchDoc.pdf


I am powering the STM32 externally with 3.3V, so the USB C VBUS isn't connected. I have GND, D+, and D- connected. I'm unsure if I'm missing VBUS sensing, or if my setup is fundamentally wrong. I read that PA9 is used for VBUS sensing on the STM32G4 series, but connecting it made no difference.

The rest of the design isn't populated - I'm testing just this minimal setup on a custom PCB. I also don't have an ST-Link so I am trying to get USB DFU working. The status LED behaves as expected flashing when powered, and when I hold BOOT0 and reset, it seems to enter DFU mode. I've also tried swapping components to no avail.

When I plug it into my PC, windows says "USB device not recognised... the last USB device you connected to this computer malfunctioned and Windows does not recognise it". Device manager shows "Unknown USB Device (Device Descriptor Request Failed)". This is both in normal and DFU mode.

I'd really appreciate any suggestions or guidance - I'm new to the STM32 so apologies if I'm missing something obvious. Thank you!

0 REPLIES 0