2026-05-05 5:04 AM - last edited on 2026-05-08 1:59 AM by FBL
Hello all,
Split from this thread:
I'm using an STM32U5G9 and I need to read files from a USB stick.
I don't want to use ThreadX because I have to keep this application small.
How can I achieve this if UsbX and FileX are supposed to be used only with ThreadX and not in standalone mode?
Thanks for your help.
Best regards,
Julien
2026-05-05 7:58 AM - edited 2026-05-08 2:04 AM
Hi @JulInnovel
USBX Host MSC standalone operation is not supported with FileX due to a dependency that requires the ThreadX context. When USBX Host is used in standalone mode, FileX cannot be supported, as enforced by a conditional definition in ux_host_class_storage.h that disables FileX support in standalone mode.
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.
2026-05-05 8:04 AM
Hi,
My original question was: how can I use USBX and FileX to read files from a USB stick (host mode) in standalone mode (so without ThreadX)?
It does not seem to work properly. I tried using the old ST USB stack with FatFS (https://github.com/STMicroelectronics/stm32u5-classic-coremw-apps) instead, and now everything seems to work fine.
Best regards,
Julien