Host not sending bulk out data

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Madara on Fri Nov 29 02:54:34 MST 2013
I am trying to implement usb msc in lpc2387 using nxpusblib.I can read data from sd card.But when writing, the pc issues a write size of 4KB but i am getting only 512 bytes and in USBlyzer I get the message of USB Bulk transfer cancelled.

I get 512 bytes and then use Endpoint_ClearOUT() to acknowledge and request another packet but no data is received and the DD_status in DMA descriptor always reads 0 meaning no data has been transferred from the host.

How to solve this problem??