AnsweredAssumed Answered

LPC1768 USB Host mode not working

Question asked by Stuart Juengst on Sep 12, 2016

I can't seem to get USB Host mode working on LPC1768.  It always gets stuck during enumeration waiting on the GetDescriptor control call to complete.  


My primary setup is the mbed NXP LPC1768 on an mbed application board running the lpcusblib_KeyboardHost example project from lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.  The DIP switches on the application board are in the Host position, and a USB keyboard is attached to the Mini USB connector on the application board.


It always gets stuck in WaitForTransferComplete(), at this line:

   while ( HcdED(EdIdx)->status == HCD_STATUS_TRANSFER_QUEUED ) {}


I've also tried substituting the USBHostLite library in place of lpcusblib, with similar results.  In this case, it gets stuck in Host_WDHWait():

  while (!HOST_WdhIntr) {




Googling it, I don't see anyone else asking about similar problems, so I must be missing something.  Can anyone make a suggestion about why my transfers are never completing?


My LPCXpresso project is attached.







Original Attachment has been moved to: