FinishDataXfer returns false before timeout

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

cross mob
Crystal30086
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

We got random communication errors at low frequency. When the error occurs,  WaitForXfer returns immediately before timeout and FinishDataXfer returns false. Sometimes, it can be recovered after retrying for several times. Sometimes, the USB peripheral works abnormally and it disappears and appears again in the Windows device manager for many times until restarting the software.

This error occurs after upgrading CYAPI.lib from 32bit to 64bit. We have tried the following two versions of SDK and both of them do not work well.  But I do not know the SDK version which we used before upgrading, since the old CYAPI.lib has been used for many years and no one knows who downloaded it.

https://www.cypress.com/documentation/development-kitsboards/cy3684-ez-usb-fx2lp-development-kit

https://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-software-development-kit

The USB chip we are using is 68013 and it works well before upgrading the SDK.  The USB driver version is 1.2.3.20.

What should we do to prevent this error? 

 

 

0 Likes
1 Solution
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

We recommend you to use the library and driver present in the latest FX3 SDK: https://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-software-development-kit

Was the issue not seen before in the previous version?

Which firmware are you using?

Would it be possible to check on another system?

Would it be possible to attach USB analyzer logs?

 

View solution in original post

0 Likes
3 Replies
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

We recommend you to use the library and driver present in the latest FX3 SDK: https://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-software-development-kit

Was the issue not seen before in the previous version?

Which firmware are you using?

Would it be possible to check on another system?

Would it be possible to attach USB analyzer logs?

 

0 Likes

Thank you very much for the quick reply!

Was the issue not seen before in the previous version?

No, this issue occurs after upgrading the CYAPI.lib to the new version.

Which firmware are you using?

I need to check with the firmware engineer and currently he is on vacation.

Would it be possible to check on another system?

We have tested on several systems. The test results are similar and this issue also occurs on other systems.

Would it be possible to attach USB analyzer logs?

Which tool should I use to get USB analyzer logs?

Where can we download the full versions of archive SDKs? The link below can only download the firmware but not CYAPI.lib.

https://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-sdk-archives?source=search&cat...

0 Likes
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

Apologies for the delay in response.

You can use an analyzer like Lecroy to obtain the logs.

0 Likes