cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A9J-DK1 USB Device as mass storage standalone question

tod
Associate

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:

tod_0-1757551157942.png

NVIC:

tod_1-1757551166322.png

RCC:

tod_2-1757551171176.png

SYS:

tod_3-1757551200781.png

USBX:

tod_4-1757551208475.pngtod_5-1757551212555.pngtod_6-1757551216152.pngtod_7-1757551233581.png

clock tree:

tod_8-1757551329824.jpeg

tod_9-1757551333381.jpeg

code:

tod_10-1757551379374.png

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:

tod_11-1757551395215.png

MX_USB_OTG_HS_PCD_Init:

tod_12-1757551434831.png

HAL_PCD_MspInit:

tod_13-1757551490867.png

 

edit

related thread: Solved: STM32U5A9J-DK1 USB Device question - STMicroelectronics Community

2 REPLIES 2
FBL
ST Employee

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.


tod
Associate

HIi @FBL 

Thank you for your reminder, and thank you for helping me start a new discussion.

Here is my ioc file.