USB enumeration issue
I'm using a STM32F407VG and I'm trying to use the USB-micro port to send data to my PC. When I connect the cable to my PC these messages pop-up when running dmesg -w
[13364.173681] usb 1-1: new full-speed USB device number 92 using xhci_hcd
[13364.301674] usb 1-1: device descriptor read/64, error -71
[13364.541732] usb 1-1: device descriptor read/64, error -71
[13364.781697] usb 1-1: new full-speed USB device number 93 using xhci_hcd
[13364.917738] usb 1-1: device descriptor read/64, error -71
[13365.153695] usb 1-1: device descriptor read/64, error -71
[13365.261810] usb usb1-port1: attempt power cycle
[13365.681719] usb 1-1: new full-speed USB device number 94 using xhci_hcd
[13365.681902] usb 1-1: Device not responding to setup address.
[13365.889854] usb 1-1: Device not responding to setup address.
[13366.101623] usb 1-1: device not accepting address 94, error -71
[13366.229857] usb 1-1: new full-speed USB device number 95 using xhci_hcd
[13366.230045] usb 1-1: Device not responding to setup address.
[13366.437862] usb 1-1: Device not responding to setup address.
[13366.645849] usb 1-1: device not accepting address 95, error -71
[13366.646001] usb usb1-port1: unable to enumerate USB device
I've checked and the clock should be 48MHz. I have tried debugging and the USB initialization functions all return the correct values. I've put a breakpoint on OTG_FS_IRQHandler and it is indeed called. I've configured the STM32 as CDC class. VBUS sensing is disabled.
Any ideas for what I should check?