Skip to main content
Associate II
August 26, 2026
Question

STM32U5G9J-DK2 – USB Host hardware test with Ux_Host_HUB_HID_MSC

  • August 26, 2026
  • 2 replies
  • 52 views

Hello,

I would like to test the USB Host hardware functionality of my STM32U5G9J-DK2 board.

For the software, I used the official ST example without any modification:

STM32CubeU5/Projects/STM32U5G9J-DK2/Applications/USBX/Ux_Host_HUB_HID_MSC

I performed two separate hardware tests:

  1. CN2 + USB-C to USB-A female adapter + USB mouse/dongle.

  2. CN2 + externally powered USB HUB.

With the USB-C to USB-A adapter, LD5 does not turn on and the USB device is not detected.

With the externally powered USB HUB, LD5 turns on, but the HUB is still not detected.

In both cases, the application remains at:

USB Host library started.
Starting HUB Application
Connect your HUB Device

I would like to confirm if these hardware tests are correct for checking the USB Host functionality of the STM32U5G9J-DK2.

Thank you.

2 replies

ST Technical Moderator
August 27, 2026

Hello ​@Ameni 
just to double check, did you make sure that you injected 5V on USB Vbus pin
The USB_TYPE_C CONNECTOR in STM32U5G9ZJT6Q Discovery is SINK ONLY (Vbus drive not supported), therefore this example can only be used as a reference to show how to enable HUB functionality. User should ensure to inject 5V on USB Vbus pin to get the example working.

It is mandatory to check that the Jumpers below are fitted: JP4 : USBC_5V Jumper is fitted in order to provide Vbus 5V.
Also, can you give us a caption of what is printed in your HyperTerminal.
BR
Gyessine

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
AmeniAuthor
Associate II
August 27, 2026

Hello Gyessine,

Thank you for your reply.

Yes, 5 V is present on VBUS.

I performed some additional tests with another USB HUB: a LAB31 4-port HUB, with USB-C 3.2 input and USB 2.0/3.2 ports.

With this HUB, the official ST example now detects the HUB correctly.

Here is the Tera Term output with only the HUB connected, without any mouse or USB flash drive connected to it:

**** USB OTG HS HUB HID MSC Host ****

USB Host library started.

Starting HUB Application
Connect your HUB Device

HUB_Device
PID: 0x101
VID: 0x1a40
USB HUB Host App

USB Mass Storage Device Plugged
PID: 0x101
VID: 0x1a40

The issue is that USB Mass Storage Device Plugged is already displayed when only the HUB is connected, with the same VID/PID 1A40:0101 as the HUB.

Then, when I connect a USB flash drive or a mouse to the HUB, no new message appears in Tera Term.

I tested both USB-A ports of the HUB and the result is the same.

The HUB, USB flash drive, and mouse all work correctly when connected to a PC.

Could you please confirm whether this behavior is expected with the Ux_Host_HUB_HID_MSC example, or whether there are known compatibility limitations with some USB HUBs?

Best regards