Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB low-full-high speed peripherals Forum Discussions

marcus
Level 2
Level 2
5 replies posted 10 sign-ins 5 sign-ins

Hi,

When disconnecting my CY7C68013A while or just before an endpoint transfer, this transfer does not timeout.
The calling thread is blocked in the "cyUSB.dll!cyUSB.cyUSBEndPoint.WaitForIO" method.

I'm using cyUSB.dll version 1.2.3 and my calling code (VB.NET) is:

Fx2Dev.EndPointOf(1).TimeOut = 2001
Fx2Dev.EndPointOf(1).XferData(Buf, Buf.Length)

I tried to manually interrupt the transfer by calling  the Abort() and Reset() methods of the respective endpoint from another thread but without any success.

Please advice how to interrupt the transfer.
Best
Marcus

0 Likes
1 Solution
marcus
Level 2
Level 2
5 replies posted 10 sign-ins 5 sign-ins

I think I've solved the issue:

I'd mixed up different versions of the usb driver and the respective cyusb.dll.

I've test four possible combination and found that

driver 3.4.7 works with dll 3.4.7
driver 1.2.3 works with dll 3.4.7
driver 1.2.3 works with dll 1.2.3
driver 3.4.7 does not work with dll 1.2.3

(where as v1.2.3 is from EZ-USB FX3 SDK and v3.4.7 is from Cypress Suit USB 3.4.7)
"works with" means does timeout the XferData method!

Can you please confirm that EZ-USB FX3 SDK is recommended to be used with the CY7C68013A FX2 device?

Best
Marcus

View solution in original post

0 Likes
2 Replies
MallikaK_22
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 250 replies posted

Hello Marcus,

Can you check the Streamer application once as a reference?

Please also share your source if possible.

Regards,

Mallika

 

0 Likes
marcus
Level 2
Level 2
5 replies posted 10 sign-ins 5 sign-ins

I think I've solved the issue:

I'd mixed up different versions of the usb driver and the respective cyusb.dll.

I've test four possible combination and found that

driver 3.4.7 works with dll 3.4.7
driver 1.2.3 works with dll 3.4.7
driver 1.2.3 works with dll 1.2.3
driver 3.4.7 does not work with dll 1.2.3

(where as v1.2.3 is from EZ-USB FX3 SDK and v3.4.7 is from Cypress Suit USB 3.4.7)
"works with" means does timeout the XferData method!

Can you please confirm that EZ-USB FX3 SDK is recommended to be used with the CY7C68013A FX2 device?

Best
Marcus

0 Likes