"I'm having issues creating a USB..." <- > <@meptllc:matrix.org> I'm having issues creating a USB device via keyberon with my WeAct Black Pill (STM32F411CEU6). I'm using a minimal usb/led blink example: > https://gist.github.com/Meptl/1903d3e63fc9851c94b066e6135700d8 On my desktop system I get kernel error messages like so when running my device: > ``` > [11114.854768] usb 1-10: new full-speed USB device number 26 using xhci_hcd > [11115.344546] usb 1-10: unable to read config index 0 descriptor/all > [11115.344555] usb 1-10: can't read configurations, error -75 > [11115.347106] usb usb1-port10: attempt power cycle > [11115.730032] usb 1-10: new full-speed USB device number 27 using xhci_hcd > [11115.980583] usb 1-10: unable to read config index 0 descriptor/start: -75 > [11115.980591] usb 1-10: can't read configurations, error -75 > [11116.097034] usb 1-10: new full-speed USB device number 28 using xhci_hcd > [11116.225442] usb 1-10: device descriptor read/all, error -75 > [11116.227770] usb usb1-port10: unable to enumerate USB device > [11128.543924] usb 1-4: new full-speed USB device number 29 using xhci_hcd > [11128.913935] usb 1-4: unable to read config index 0 descriptor/all > [11128.913943] usb 1-4: can't read configurations, error -75 > [11129.030915] usb 1-4: new full-speed USB device number 30 using xhci_hcd > [11129.701777] usb 1-4: New USB device found, idVendor=16c0, idProduct=27db, bcdDevice= 0.10 > [11129.701784] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 > [11129.732457] usbhid 1-4:1.0: can't add hid device: -75 > [11129.732466] usbhid: probe of 1-4:1.0 failed with error -75 > ``` > this issue occurs on two instances of my dev boards, 3 different usb ports, two different cables, and whether or not I have my Black Magic Probe (which I use for flashing) connected to the SWD pins on the mcu. It works maybe 70% of the time on my laptop computer; My laptop is able to create a device endpoint in /devices/pci*/usb*/**/input sometimes. > > Any ideas about what could be wrong/how I can go about debugging this? > > The full repo (with a lot of work-in-progress cruft) at https://gitlab.com/Meptl/keyboard can't help you but I'd suggest getting a probe setup going where you can use defmt logging (e.g. with an STLink v2 clone, or a rp2040 debug probe, etc.)