STemWin + USB Host MSC + stm32h7
Hello.
I try to make application with USB FS (host msc) and emwin on board stm32h743i-eval.
When i connect USB, enumeration doesn't happen. Function USBH_Get_DevDesc always return USBH_BUSY, and usb stay in state ENUM_IDLE.
But if i comment function GUI_Init enumeration is ok and i can see some usb descriptors in my uart terminal. Something happening in GUI_Init, that prevents usb.
Another strange thing is that i also have USB (HS) Host camera device (UVC class), and it works fine with GUI_Init or without it.
So, this code works well:
SystemClock_Config();
__HAL_RCC_CRC_CLK_ENABLE();
//GUI_Init();
USBH_Init(&usb_storage_handle, usb_storage_process, USB_STORAGE_ID);
USBH_RegisterClass(&usb_storage_handle, USBH_MSC_CLASS);
USBH_Start(&usb_storage_handle);
while (1) {
USBH_Process(&usb_storage_handle);
}
But when i change
//GUI_Init();
on
GUI_Init();
USB dont work.
Help me please. Thanks
