Skip to main content
Associate III
April 28, 2026
Solved

STM32H5 Host mode with an external 4-port USB Hub

  • April 28, 2026
  • 2 replies
  • 217 views

Greetings,

I am working on testing a STM32H573 based HW design, which uses an external 4-port USB-2.0 Hub.
I plan on using USB Flash drives, and read/write files to them as a diagnostic test.
I will instantiate the STM32H573 USB interface as Host-mode, and have it discover
the USB hub, and enumerate the downstream devices (flash drives/sticks).

Our current SW base is using the FreeRTOS OS.

Should I switch to Azure ThreadX? I have heard that the USBX ThreadX library is
the way to go?

Can I run USBX under FreeRTOS, or does it require ThreadX?

Thanks for any guidence!

Ken Carlson
Draeger Medical Systems Inc.

Best answer by T_Hamdi

Hello @microcoder 

Thank you for your question.

Can I run USBX under FreeRTOS, or does it require ThreadX?

Yes, you can run USBX under FreeRTOS. You may also find this article helpful:

How to add USBX to an STM32 FreeRTOS™ project - STMicroelectronics Community

Also, for USB Host HUB, we have an application example that can be used as a reference. It is implemented with ThreadX:

STM32CubeU5/Projects/STM32U5x9J-DK/Applications/USBX/Ux_Host_HUB_HID_MSC at main · STMicroelectronics/STM32CubeU5 · GitHub

with regards

 

2 replies

T_Hamdi
T_HamdiBest answer
ST Employee
April 29, 2026

Hello @microcoder 

Thank you for your question.

Can I run USBX under FreeRTOS, or does it require ThreadX?

Yes, you can run USBX under FreeRTOS. You may also find this article helpful:

How to add USBX to an STM32 FreeRTOS™ project - STMicroelectronics Community

Also, for USB Host HUB, we have an application example that can be used as a reference. It is implemented with ThreadX:

STM32CubeU5/Projects/STM32U5x9J-DK/Applications/USBX/Ux_Host_HUB_HID_MSC at main · STMicroelectronics/STM32CubeU5 · GitHub

with regards

 

"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.Hamdi Teyeb"
Associate III
May 4, 2026

Thank you!

Very helpful

Ken