NUCLEO STM32F767ZI: problems to enable USB OTG FS (Host)
I started a STM32 framework project here: https://github.com/FBergemann/STM32-FreeRTOS-Framework/tree/dev-usb-host-msd. And i am currently busy to set up logging to console and USB FS (as Host to USB stick). But i didn't manage to enable USB OTG FS. I think it's due to an error in enable VBUS. Because in https://github.com/FBergemann/STM32-FreeRTOS-Framework/blob/dev-usb-host-msd/USB_HOST/Target/usbh_conf.c there is
#79 GPIO_InitStruct.Pin = USB_VBUS_Pin;
#80 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; /* wrong?! */
#81 GPIO_InitStruct.Pull = GPIO_NOPULL;
#82 HAL_GPIO_Init(USB_VBUS_GPIO_Port, &GPIO_InitStruct);
I followed instructions according http://evenlund.blogspot.com/2016/10/usb-storage-with-stm32f4-discovery-and_58.html
and https://www.youtube.com/watch?v=uIOb5sSFyUY.
Can you please tell me, what i am doing wrong here?
- thanks!
regards,
Frank
