Re: USB Bulk Reads via Cypress EZ-USB FX2
- From: Gavin Brewer <gb@xxxxxxxxxx>
- Date: Thu, 10 May 2007 13:44:41 +0100
jetmarc@xxxxxxxxxxx wrote:
"usb_submit_async: submitting request failed, win error: The parameter
is incorrect"
So far, we have established that the problem is on the peripheral (8051
FX2) side, and *not* on the host side.
How have you established that?
We tested a different device with it's own firmware. The program used to load the .HEX file into the device memory, (r)enumerate USB devices and issue vendor requests etc was still the same.
This setup worked fine and so therefore the problem was not with the host end of things.
What parameters do you use to call the driver function?
Well, here's the function call:
r = usb_bulk_read(hCurrent_reader, 0x86, buffer, USB2_BUFFER_SIZE, 1000);
if (r != USB2_BUFFER_SIZE){
printf("Bulk Read failed (%d).\n",r);
printf("%s\n",usb_strerror());
} else {
printf("Bulk read success\n");
}
You may almost certainly require more specific information; if this is so then please ask.
Thank you,
Gavin Brewer.
.
- Follow-Ups:
- Re: USB Bulk Reads via Cypress EZ-USB FX2
- From: jetmarc
- Re: USB Bulk Reads via Cypress EZ-USB FX2
- References:
- USB Bulk Reads via Cypress EZ-USB FX2
- From: Gavin Brewer
- Re: USB Bulk Reads via Cypress EZ-USB FX2
- From: jetmarc
- USB Bulk Reads via Cypress EZ-USB FX2
- Prev by Date: How to fix point?
- Next by Date: Re: pic c
- Previous by thread: Re: USB Bulk Reads via Cypress EZ-USB FX2
- Next by thread: Re: USB Bulk Reads via Cypress EZ-USB FX2
- Index(es):
Relevant Pages
|