|
From: Moses M. <mo...@te...> - 2012-04-23 18:56:03
|
Here's a link which describes my fix. http://www.lpcware.com/content/forum/control-pipe-stall-problem-nxpusblib I'm not using interrupt endpoints (yet) so I don't know about them. Moses On 04/23/2012 01:46 PM, Akos Vandra wrote: > Hi! > > My device is an LPC1768 microcontroller, with firmware written by me. > I've used mostly the NXP's library to drive the USB peripheral. > I have 4 endpoints, 2 bulk in/out and 2 interrupt in/out. It is a > canusb adapter. I query the interrupt transfers to know how many > packet are in the queue, and use the bulk endpoints to transfer the > received packets. (Not the best solution I know, it will be redesigned > in the future - but alas it should be working). > > What was the code you were using, and what was the error you found? > I'm going to check the firmware myself tomorrow, if that might be in > error (wouldn't be surprised considering NXP's libraries...). > But the transfers failing are interrupt transfers, not control transfers. > > The device is on a USB3.0 bus, but it is capable only of USB2.0 high > speed (12MBit/s). I tried plugging it into a USB2.0 port, but it > didn't help. > My timeouts are not tight at all, they are 100ms, but I increasing > that to 1000ms didn't help. > > I've attached the usbmon outputs. > > Thanks for your help, > Ákos Vandra |