Skip to main content
February 20, 2020
Question

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

  • February 20, 2020
  • 4 replies
  • 880 views

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

    This topic has been closed for replies.

    4 replies

    Visitor II
    February 21, 2020

    Hi rtek1000,

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

    Regards,

    Ons.

    February 21, 2020

    Hello Ons KOOLI,

    These are STM32CubeIDE and STM32F407VGT6,

    Thank you for your attention.

    Visitor II
    April 17, 2020

    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.

    Visitor II
    April 17, 2020

    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.