2025-05-13 8:57 AM
I'm trying to get USBX MSC working in standalone mode on the STM32H573I Discovery board.
I've come across a few tutorials for setting up USBX in VCP mode and have attempted to adapt them for MSC, but I haven’t been able to get the USB to enumerate properly. My background is in electronic hardware design, so this software side is quite new to me.
Are there any tutorials specifically for setting up USB MSC in standalone mode that I can follow? Alternatively, are there any example projects available?
Thank you
2025-05-20 3:01 AM
Hello @Sidewinder,
You can start with the USBx Host or Device MSC applications available within the STM32CubeH5 V1.5.0 firmware package. This package is available for download from the ST website and GitHub.
Regards,
2025-05-24 6:24 AM
Hi @Sidewinder
As suggested, you can start with this example, Then you can manage directly USBX tasks without threading. You need to disable ThreadX, USBPD and FileX in CubeMX. It's quite complex to handle but let us know if facing any issue.
Note the following define forced in standalone mode of usbx that may CubeMX couldn't generate. An internal ticket is ongoing to fix this issue.
#define UX_HOST_CLASS_STORAGE_NO_FILEX
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.