Re:usb_dev_bulk bits per second
Hello, I am calculating the bps on the PC side. I'm reading 64 byte blocks 20480 times [20480 = (10 * 1024 * 1024)/(64 bytes X 8 bits/byte)] in order to read a total of 10Mbits, then divide by the elapsed time. Assuming the PC to be faster than the ARM, this should be OK to a first approximation. The ARM code is a "slight" modification of Luminary's usb_dev_bulk.c example for the Keil EVK. It is admittedly a synchronous (write, wait for done, write, wait for done...) loop, so it not going to be as fast as double buffered, or DMA, etc. I'm hoping some code-angle (or is that monkey?) will volunteer a working example (did YOU write the Sellaris USB ROM?). And yes, I need to validate the PC code and the PC WinUSB.sys driver. I have an old cypress fx2 dev kit in the closet somewhere. A bus monitor would be nice, too. Thanks for the reply,
Richard
login or register to reply
|