Skip to main content
Associate
February 7, 2025
Solved

STM32F405 using dual USB host

  • February 7, 2025
  • 4 replies
  • 1152 views

Hi,
I'm new to the ST32 world and would like to know if this is possible before I start experimenting with an STM32F405:

Is it possible to use both USB interfaces as a USB host at the same time (only full speed and low speed, no high speed is required)
For example, to connect a mouse to one USB port and a keyboard to the other USB port.

If so, can I just use D+/D- of the ports, or do you need additional external components for the high-speed port also when I use it in HS/LS mode?

If that works, is there any example software to use 2 HID hosts in parallel? Is there an evaluation board that has USB ports?

This topic has been closed for replies.

4 replies

Andrew Neil
Andrew NeilBest answer
Super User
February 7, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
February 7, 2025

Perfect, thanks!

ST Technical Moderator
February 10, 2025

Hi @Lowlanders 

It is not possible to connect more than one device to the same USB port configured as a host. Actually, hub operation is not supported.

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
February 10, 2025

Yes, I know. One device per USB port. So I should be able to connect a total of 2 devices to the ST32F405.
This's all I want. And I hope that I can connect LS and FS devices without any problems.