Skip to main content
Julian Winpenny
Associate III
August 2, 2018
Question

How to make STM32l475 work in USB host mode

  • August 2, 2018
  • 13 replies
  • 3023 views

STM32l475 USB host USBH_UserProcess() not progressing to HOST_USER_CLASS_ACTIVE

    This topic has been closed for replies.

    13 replies

    Pavel A.
    August 3, 2018

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

    -- pa

    Julian Winpenny
    Associate III
    August 6, 2018

    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.
    August 6, 2018

    >  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