STM32CubeMX USB error "Unknown USB Device(Descriptor Request Failed)"
When I switch the clock source to HSI, the USB connection build successfully, so the reason may be the poor quality of crystal oscillator or bad soldering. I resolder the crystal oscillator and this time the USB can get connected with no issue.