STM32F4HUB
STM32F4HUB copied to clipboard
Porting on MP135
Hello Mori, thanks for your contribution. Given the lack of other source code I'm trying to port your solution toward MP13x micro family. Additionally, I'm trying to use a non-OTG USB port (not supported by ST for bare metal solution).
In my code I'm using similar initialization and your hub_process() but it crashes on USBH_HID_GetMouseInfo() call cause the pActiveClass null (valid = 1 as initialized). Anyway I don't understand how the hub protocol/communication is initialized: in the hub_process() the while(1) loop I guess is used to initialize the EP0 structure.
None of the usbh_hub.c functions are recalled so, for example, how and where the device is enumerated?
Thanks, regards.