2025-09-10 5:47 PM - last edited on 2025-09-11 6:45 AM by FBL
Hi, @FBL
I am also using this board and STM32Cube_FW_U5_V1.8.0 to create a USBX stand-alone (without THREADX) MSC device,but struggling to get the board to enumerate with the PC.
I'm not sure if it's a configuration issue or a code modification problem.
Below are my configurations and code modification points.
Could you please help analyze them? Thank you very much!
configurations:
USB_OGT_HS:
NVIC:
RCC:
SYS:
USBX:
clock tree:
code:
UINT MX_USBX_Device_Init(VOID)
{
//default code
......
/* USER CODE BEGIN MX_USBX_Device_Init1 */
USBX_APP_Device_Init();
/* USER CODE END MX_USBX_Device_Init1 */
return ret;
}
USBX_APP_Device_Init:
MX_USB_OTG_HS_PCD_Init:
HAL_PCD_MspInit:
edit
related thread: Solved: STM32U5A9J-DK1 USB Device question - STMicroelectronics Community
2025-09-11 6:53 AM
Hi @tod
Sorry for my late response, it would be better to start new discussion for each issue to adhere to ST community guidelines and terms.
Would you attach your ioc file ?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-09-11 6:58 AM
HIi @FBL
Thank you for your reminder, and thank you for helping me start a new discussion.
Here is my ioc file.