2024-04-04 05:50 AM
Here comes another query about the status of a HUB device for the USB Host library.
I have been working with the driver from here
and have the HUB functional but cannot seem to get the MSC initialized and working.
Why does STM not support a hub in their HOST Library? There certainly have been enough inquiries.
Solved! Go to Solution.
2024-04-16 04:55 AM
I still have access to the project in the original link.
Since this effort was for a boot loader and all that was needed was a partial implementation to init the hub USB port for an MSC device, got enough of this working for that use case.
2024-04-04 06:25 AM - edited 2024-04-04 06:28 AM
That project on github is removed (or made private). IIRC it was left in intermediate state. IMHO ST does not support hub because it complicates their existing library end examples too much. Introduces tree of devices (how about multiple levels of hubs?) at least. So they prefer not to interfere with business of other vendors who offer production grade USB libraries (who also are their valuable software partners in the STM32 ecosystem).
Unfortunately they put their stakes on a wrong horse with dreadful reputation (Microsoft, AzureRTOS....)
2024-04-04 06:27 AM - edited 2024-04-04 06:34 AM
What are the production grade USB libraries for use in the bootloader?
2024-04-04 06:43 AM - edited 2024-04-04 01:33 PM
Segger, for one. Their examples are with RTOS but IIRC their library can be used baremetal. Their support will gladly explain.
Also look at tinyusb https://github.com/hathach/tinyusb
2024-04-16 04:55 AM
I still have access to the project in the original link.
Since this effort was for a boot loader and all that was needed was a partial implementation to init the hub USB port for an MSC device, got enough of this working for that use case.