- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,all
I use API function CyU3PConnectState(CyFalse,CyFalse) to disable the USB connection, and then use CyU3PConnectState(CyTrue,CyTrue) to restore the connection, but it doesn't work. When I use CyU3PConnectState(CyTrue,CyFalse) to restore the connection, it works. This is why?
Regards,
Feng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please tell us what is the error you see? Can you check and tell the return status of the CyU3PConnectState API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Nishant,
In fact, there is not error return status of the CyU3PConnectState API, that is the API works fine. But the FX3 can re-enumerate only when API set as CyU3PConnectState(CyTrue,CyFalse).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check the below implementation under the vendor command in the attached firmware:
case 0xE1:
status = CyU3PConnectState(CyFalse,CyFalse);
status = CyU3PConnectState(CyTrue, CyTrue);
you can check the same after you program the FX3 with the attched firmware and send a vendor command with code E1. You will notice that the device will re-enumerate on the USB. I checked and it does work at my end using Superspeed explorer kit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Feng,
Is it resolved ? Can you please update what happened ?
Thanks & Regards,
Shanthakumar