Hi
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.
usb_host_hid.c
if (status == kStatus_USB_TransferStall)
{
if (USB_HostHidClearHalt(hidInstance, transfer, USB_HostHidClearInHaltCallback,
(USB_REQUEST_TYPE_DIR_IN |
((usb_host_pipe_t *)hidInstance->inPipe)->endpointAddress)) == kStatus_USB_Success)
{
USB_HostFreeTransfer(hidInstance->hostHandle, transfer);
return;
}
}
Why stall occur and How do I clear stall states?
Thanks for your reply
Regards