I have faced the same problem with CubeMX 5 too.The workaround is to change USB Core Speed define for USB_OTG_SPEED_FULL from 3U to 2U.and USB_OTG_SPEED_LOW from 2U to 3U.File: stm32f2xx_ll_usb.h. . ./** @defgroup USB_Core_Speed_ USB Core Speed * @...