2020-02-19 11:36 PM
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.
2020-02-20 11:10 PM
Hi rtek1000,
Can you please provide the ST product you are working with ?
Regards,
Ons.
2020-02-21 09:06 AM
Hello Ons KOOLI,
These are STM32CubeIDE and STM32F407VGT6,
Thank you for your attention.
2020-04-16 07:20 PM
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.
2020-04-16 09:42 PM
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.