cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any example of use for the HS and FS ports independently with the use of RTOS, or without the use of RTOS?

Not applicable

I tried to use the two ports independently, the USB HS with a pendrive (MSC) and the USB FS with a keyboard (HID), but I couldn't.

It only works if the ports are treated in sequence, but not in parallel.

From what I could see, the HAL libraries are shared, the two ports use the same HAL functions.

The same goes for other hardware, such as SPI, I2C etc.

Thank you.

Ref.: https://community.st.com/s/feed/0D50X0000C5SG8Y

4 REPLIES 4
Ons KOOLI
Senior III

Hi rtek1000,

Can you please provide the ST product you are working with ?

Regards,

Ons.

Not applicable

Hello Ons KOOLI,

These are STM32CubeIDE and STM32F407VGT6,

Thank you for your attention.

Ons KOOLI
Senior III

Hi rtek1000,

I don't think that there is any application of using two USB ports independently. But there are applications that use USB + RTOS like HID or MSC in the Cube FW.

Best Regards,

Ons.

berendi
Principal

This is a limitation of the USB drivers provided by ST. They have lots of hardcoded delays which makes them barely usable for anything except demonstration.

Other peripheral drivers are better in this regard, they have blocking and non-blocking versions of functions.