cancel
Showing results for 
Search instead for 
Did you mean: 

How to make STM32l475 work in USB host mode

Julian Winpenny
Associate II

STM32l475 USB host USBH_UserProcess() not progressing to HOST_USER_CLASS_ACTIVE

13 REPLIES 13
Julian Winpenny
Associate II

These are now in USBH_Conf.c

USBH_LL_Init(phost);

USBH_LL_Start(phost);

Still no enumeration

Pavel A.
Evangelist III

Have you probed the voltage on USB connector to the device? Got 5V there?

-- pa

Julian Winpenny
Associate II

Yes I have 5V at the device.

I have been tracing the code and I find SOH packets coming from the device in response to the USBH_Get_DevDesc().

Does not get past:

/* Check for enumeration status */  

  if ( USBH_HandleEnum(phost) == USBH_OK)

  

It is just repeatedly getting here:

if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_SOF)) in HAL_HCD_IRQHandler()

Pavel A.
Evangelist III

>  I find SOH packets coming from the device in response to the USBH_Get_DevDesc(). Does not get past: .........

It still looks that the attached device is not alive and first requests to the device won't pass (address assignment...). The SOF interrupts are generated by the host itself.

-- pa