Skip to main content
Associate III
Jun 24, 2026 15:23 UTC
Solved

STM32H573ZI with USB FS (non-OTG, and non-USB-C) microUSB question

Greetings,

We have a new HW design based on the STM32H573ZI. We are using the USB port and have it

going to a 4-pin micro-USB connector with VBUS, D-, D+, and GND.

 

I would like to run an H5 Example application to verify that the HW is functional, something like the Ux_Device_HID example.

However the Ux_Device_HID examples I see seem to only support USB-C with USBPD (Power Delivery).

 

Are there any simple Device Only examples which natively support micro-USB, or USB-A?

 

Thanks

Ken Carlson

Draeger Medical Systems

 

Gyessine
GyessineBest answer
ST Technical Moderator
Jun 29, 2026 11:01 UTC

Hello ​@microcoder 
Here is a simple HID device example that uses USBX and ThreadX without USB PD functionality. It moves the mouse cursor every second. It uses only the PA11 and PA12 pins. It has already been tested. It might help.
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.

7 replies

ST Technical Moderator
Jun 26, 2026 12:48 UTC

Hi ​@microcoder 

For STM32H573ZI, a simple USB Device only application using type C only (without PD ) or using micro B USB connector is absolutely feasible. However, we don’t provide direct example using USB legacy receptacle.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Associate III
Jun 26, 2026 12:54 UTC

Thank you!

Gyessine
GyessineBest answer
ST Technical Moderator
Jun 29, 2026 11:01 UTC

Hello ​@microcoder 
Here is a simple HID device example that uses USBX and ThreadX without USB PD functionality. It moves the mouse cursor every second. It uses only the PA11 and PA12 pins. It has already been tested. It might help.
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.
Associate III
Aug 27, 2026 19:18 UTC

Thank you so much!

This worked immediately, I can see the mouse movements, just like the button press example, except

with a timer!!

 

Much appreciated

Ken

 

Associate III
Aug 27, 2026 20:22 UTC

I used MXCube to “migrate” the above project, and now after re-compiling the newly generated code,

it doesn’t get enumerated by the Host PC anymore? Arghhh :-)

 

Thanks

Ken

Gyessine
ST Technical Moderator
Aug 28, 2026 08:37 UTC

Hello ​@microcoder 

Regenerating the code with CubeMX overwrites all added code except the code in the user code sections.

Apparently, one of the added code sections was not written in a user code section, so CubeMX deleted it.

Best regards,

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.