cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H5 Host mode with an external 4-port USB Hub

microcoder
Associate III

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.

1 REPLY 1
T_Hamdi
ST Employee

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