AnsweredAssumed Answered

LPC546xx - USB transfer stalled

Question asked by Shuntaro Hamatani on Jul 25, 2019
Latest reply on Jul 30, 2019 by Sabina Bruce



I have a problem with TransferStall on USB_HostHubInterruptInCallback ( usb_host_hub_app.c ) .

This happens when the device is connected to the host and will not advance beyond USB_HostHubProcessPortAttach's kPortRunWaitPortResetDone. 


In the case of Hid, it seems to be cleared as follows.


if (status == kStatus_USB_TransferStall)
    if (USB_HostHidClearHalt(hidInstance, transfer, USB_HostHidClearInHaltCallback,
   ((usb_host_pipe_t *)hidInstance->inPipe)->endpointAddress)) == kStatus_USB_Success)
      USB_HostFreeTransfer(hidInstance->hostHandle, transfer);


Why stall occur and How do I clear stall states?


Thanks for your reply