From: Peter S. <stu...@cd...> - 2004-11-23 11:35:33
|
On Tue, Nov 23, 2004 at 11:33:56AM +0100, Simon Mikkelsen wrote: > I'm trying to communicate with the Cypress EZ-USB FX2 development > board, using bulk transfer, but for some reason I get a connection > timed out message. > When I invoke usb_set_altinterface I get -22 in return, which > indicates and error, but I have not been able to find out what it > means. > > In the FX2 board I use an example program, which should loop back > bulk data from endpoint 2 to endpoint 6. The program is known as > bulkloop.hex proc output showed that the device has two endpoints, 1 IN and 1 OUT. I seem to recall that the FX2 boards need to have the firmware (bulkloop.hex) downloaded to them and then reset through a soft detach from the USB. In that case the FX2 is still waiting for the download, which explains why there are no 2 IN and 6 OUT endpoints. You shouldn't get -22 though, perhaps try different interface settings? //Peter |