Windows not recognizing STM32F103RBT6 in DFU mode
Hello there!
I have a custom board to control a motor, which I have tested so far using SWD, but now I need it to use the USB DFU to upload new code.
As far as I get it, to make the DFU work, I have to put some code in the microcontroller. Following some online tutorials, where I use STM32CubeProgrammer to upload a .bin file, which I did successfully, when I unplug it and put Boot0 to high, Windows gives a warning of "USB device not recognized", and in device manager, "Device Descriptor Request Failed". I have assigned the driver manually to "STM Device in DFU Mode", but there has been no change. (I tried this process with a blue pill, and it worked :\ )
I have also tried to use STM32CubeIDE to install the DFU mode with a simple blink, where in Middleware and Software Packs - USB Device - Class for FS IP, I put in Download Firmware Update Class (DFU), but I am not certain if this is enough, or if I should put something else in the code.
I didn't find much information about how to make DFU work with CubeIDE, so I am kind of lost here. Should it work out of the box, or I really need to put some code in? If so, how?
The microcontroller part of my board is in the image below, in case it's a hardware problem, but I don't think it is anymore.

