In my case, usbd_conf.c (generated by cubeide) causes this problem. In USBD_LL_Init(), the following functions are executed after initialize "hpcd_USB_OTG_HS".HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_FS, 0x80);HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 0, 0x40);...