Skip to main content
Graduate
May 13, 2025
Solved

USBx MSC Standalone

  • May 13, 2025
  • 2 replies
  • 687 views

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

    This topic has been closed for replies.
    Best answer by FBL

    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

     

     

    2 replies

    Technical Moderator
    May 20, 2025

    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.

    STM32CubeH5 - STM32Cube MCU Package for STM32H5 series (HAL, Low-Layer APIs and CMSIS, USB, TCP/IP, File system, RTOS, Graphic - and examples running on ST boards) - STMicroelectronics

    Regards,

     

    FBLAnswer
    Technical Moderator
    May 24, 2025

    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