davidgiven / fluxengine

PSOC5 floppy disk imaging interface
MIT License
353 stars 68 forks source link

USB errors #314

Open bah111 opened 3 years ago

bah111 commented 3 years ago

Hi, I am testing a newly made device and running Fluxengine from a Win10 commandline (admin mode). It was the prebuilt windows version downloaded in 30/07/21. I get the following: "fluxengine rpm" gives--> Rotational period is 200 ms (300 rpm). This is for a 5.25 360Kb drive (one of those Tandon full height drives) which is correct.

but "fluxengine test bandwidth" gives---> Transferred 1048576 bytes from FluxEngine -> PC in 1071 ms (955 kB/s) Error: data transfer corrupted at 0x5180 1.70.0.

If i run it again it gives--> Error: bad USB reply 0x 9

I have been able to get it to work (ie give a PC->Fluxengine transfer rate) occasionally on another computer, but if I get an error then i have to pull the plug and reinsert.

With the "fluxengine test voltages" gives--> Error: failed to receive command reply: Operation timed out (always the first error) or Error: bad USB reply 0x17 or Error: bad USB reply 0x 3

pulling and reinserting does not change the problem in this case (on either computer).

Is there a way to set the timeout of the usb-maybe the tandon is taking a long time to startup and respond?

Will continue to play. Thanks Brett

davidgiven commented 3 years ago

The result of 'test bandwidth' suggests that the transfer's getting corrupted somehow. Could you try a different USB cable?

hpingel commented 3 years ago

@bah111: Is this maybe an AMD Ryzen based PC? With one specific ASUS X370 mainboard I have I can only get the Cypress-Fluxengine to work if I put a (passive) USB hub between Fluxengine and the PC (problems are the same no matter if I use Windows or Linux on that machine). With other PCs in my reach it works fine without this workaround.