2024-02-18 12:26 PM
I am trying to enable USB host work. I added HAL_PWREx_EnableUSBVoltageDetector(); into void MX_USB_HOST_Init(void). and followed git examples for H7. But could not make it work((
now green VBUS led is high
But my device is not connected. When I turn on Flesh Driver for 1 sec can see how the blue LED blinks on it. at the code, I stag here:
USBH_StatusTypeDef USBH_Process(USBH_HandleTypeDef *phost)
{
__IO USBH_StatusTypeDef status = USBH_FAIL;
uint8_t idx = 0U;
/* check for Host pending port disconnect event */
if (phost->device.is_disconnected == 1U)
{
phost->gState = HOST_DEV_DISCONNECTED;
}
case HOST_IDLE :
if ((phost->device.is_connected) != 0U)
{
USBH_UsrLog("USB Device Connected");
Any Idea what is wrong?
2024-07-23 11:03 AM
Do you still have the same issue? If so, do you provide an external power supply when using USB host function?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.