I use lpcusblib debugging usbhost found that the program will stop in the WaitForTransferComplete
In enumdevice get devicedescription stop waitTransferComlete
static HCD_STATUS WaitForTransferComplete(uint8_t EdIdx)
{
#ifndef __TEST__ //
while ( HcdED(EdIdx)->status == HCD_STATUS_TRANSFER_QUEUED ) {} //while in this
return (HCD_STATUS) HcdED(EdIdx)->status;
#else
return HCD_STATUS_OK;
#endif
}
Hi Cralos_Mendoza,
Thank you ask me , I will upload my demo, hardware using LPC1788 usb port2
this is my debug demo source in baidu netdisc
source link: https://pan.baidu.com/s/1i5R2mLf password: 5788
Trouble to help guide me
Hi Chao Li,
I would recommend you to first try modifying the lpcusblib_MassStorageHost example of lpcopen for lpc1788 and test it on an evaluation board. Please make sure you are implementing the changes described on this thread:
https://community.nxp.com/thread/451242
Best Regards!
Carlos Mendoza
Technical Support Engineer
Hi Chao Li,
Could you tell us more information about what you are trying to achieve? Which example project are you using?
Thanks in advance!
Best Regards,
Carlos Mendoza
Technical Support Engineer
Hi Cralos_Mendoza,
Thank you ask me , I will upload my demo, hardware using LPC1788 usb port2
this is my debug demo source
链接: https://pan.baidu.com/s/1i5R2mLf 密码: 5788
Trouble to help guide me