STM32U5A9J-DK1 USB Device as mass storage standalone question
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
