Delay in USBBulkSourceSinkLED example

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

cross mob
MaFa_974161
Level 5
Level 5
100 sign-ins 50 replies posted 50 questions asked

Hello, I'm using FX3 device.

   

I'm using "USBBulkSourceSinkLED"

   

and I notice in rows 1004 ... 1011 this code:

   

 

   
/* Request to reset the FX3 device. */CyU3PUsbAckSetup ();CyU3PThreadSleep (2000); /* Delay for 2 seconds */CyU3PConnectState (CyFalse, CyTrue);CyU3PThreadSleep (1000); /* Delay for 1 second */CyU3PDeviceReset (CyFalse);CyU3PThreadSleep (1000); /* Delay for 1 second */
   

 

   

The delays between UsbAckSetup...ConnectState....DeviceReset are mandatory ?

0 Likes
1 Solution
Anonymous
Not applicable

If you are going to do a device reset then you suggest that you provide this threadsleep delay. If your next step is not device reset, then you can remove or reduce this time. Please let me know if you have noticed any different observation. 

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

If you are going to do a device reset then you suggest that you provide this threadsleep delay. If your next step is not device reset, then you can remove or reduce this time. Please let me know if you have noticed any different observation. 

0 Likes