use lpcusblib in LPC1788 chip

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

use lpcusblib in LPC1788 chip

1,103 Views
mini92
Contributor I

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
}

Labels (1)
0 Kudos
4 Replies

704 Views
mini92
Contributor I

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  

0 Kudos

704 Views
Carlos_Mendoza
NXP Employee
NXP Employee

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

0 Kudos

704 Views
Carlos_Mendoza
NXP Employee
NXP Employee

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

0 Kudos

704 Views
mini92
Contributor I

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  

0 Kudos