2 Replies Latest reply on Sep 6, 2017 1:15 AM by jahac_2093971

    how to reconnect to a FX2LP device when plugged again?

      hi, i have a CY1306A in my board. i am coding in C++(Qt platform) in windows 10. i want to resist my code on re-plugging usb.

      this is my code:

      void MainWindow::new_Data(){// run every 40 ms with a timer trig

      CCyUSBDevice USBDevice;

      short int numDevices = USBDevice.DeviceCount();



              LONG length = PACKET_SIZE;


              is_ok=USBDevice.BulkInEndPt->XferData((PUCHAR)xferBuffer_in[0], length , (CCyIsoPktInfo*)0,false);




      but sometime it works good and some times it crashes.