If I upload the code to my STM32F303RDT6 board the USB is not working. Windows returns an error, and the usb device is not recognized in device manager.
When I create a project via STM32Cube IDE the usb cdc works fine, so I believe something is wrong/missing in this driver.