cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

JoNe_4646056
New Contributor II

WRT FX3 Linux app to port to Windows10 , I compiled my code with the lib provided.

I put the W10 PC into testmode, but I don't understand how to tie in the INF file into my environment?

(I know basic Windows env).

If I use the provided testlib.exe, i get:

Error in opening device

-13

handle return failed

Thanks

John

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator

Hello John,

For a easier method, you can use the Zadig tool https://zadig.akeo.ie/  for the driver binding process.

Once this is successful the device (in my case FX2LP) will be bound to WinUSB driver and will be listed under "Universal Serial Bus Devices" in Device manager.

pastedImage_1.png

After the device is bound to the WinUSB driver as shown above, you can use the application.

Note: The VID and PID of the Cypress device that is used for testing and bound to the WinUSB driver should be present in the cysub.conf file present along with the testLib.exe. Else, you can add an entry.

I have added VID 04B4 and PID 1002 as FX2LP Bulk Device 1 as shown below:

pastedImage_9.png

Once this is done you can just run the application:

pastedImage_11.png

Please let me know if you get stuck anywhere while following the procedure.

Thanks,

Yatheesh

View solution in original post

0 Likes
3 Replies
YatheeshD_36
Moderator
Moderator

Hello John,

For a easier method, you can use the Zadig tool https://zadig.akeo.ie/  for the driver binding process.

Once this is successful the device (in my case FX2LP) will be bound to WinUSB driver and will be listed under "Universal Serial Bus Devices" in Device manager.

pastedImage_1.png

After the device is bound to the WinUSB driver as shown above, you can use the application.

Note: The VID and PID of the Cypress device that is used for testing and bound to the WinUSB driver should be present in the cysub.conf file present along with the testLib.exe. Else, you can add an entry.

I have added VID 04B4 and PID 1002 as FX2LP Bulk Device 1 as shown below:

pastedImage_9.png

Once this is done you can just run the application:

pastedImage_11.png

Please let me know if you get stuck anywhere while following the procedure.

Thanks,

Yatheesh

View solution in original post

0 Likes
JoNe_4646056
New Contributor II

Thanks for that. I ran Zadig,

I'm using the FX3 Bootloader (4B4/00F3).

Running testlib.exe with the provided conf file:

1

vid  = 1204 ,  pid  = 243

busNum  = 1 ,  devAddr  = 12

kernel mode driver is detached

kernel mode driver attach operation failed -12

kernel mode driver detach operation failed -12

kernel mode driver is detached

Claiming an interface

interface is claimed

Bulk out transfer

bulkout failed, error code = -5

Bulk in transfer

bulkin failed, error code = -5

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

0 Likes
YatheeshD_36
Moderator
Moderator

Hello John,

Please use the Bulkloop or BulkSourceSink firmware on FX3 for the test Application.

FX3 Bootloader cannot handle the incoming packets from the host and also it cannot source data packets when the host issues an IN token.

Note that the test application I had provided is just to check if the library is working properly and for a reference for using the library.

Using the library I provided, you can develop your own application to interact with Cypress FX2LP and FX3 devices and its variants on windows using the cypress cyusb_linux wrapper on top of libusb and use the APIs documented in the cyusb_linux_programmers_guide in FX3 Linux SDK.

Thanks,

Yatheesh

0 Likes