4 Replies Latest reply on Feb 25, 2019 5:34 PM by YangyangC_06

    `download_fx3` fails with No FX3 device found


      All of the cyusb_linux applications in the `src` directory fail for me.

      I see that the device is visible in dmesg.


      [24897982.264476] usb 3-1: new high-speed USB device number 5 using xhci_hcd
      [24897982.428812] usb 3-1: New USB device found, idVendor=04b4, idProduct=00f3
      [24897982.428819] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [24897982.428823] usb 3-1: Product: WestBridge
      [24897982.428827] usb 3-1: Manufacturer: Cypress
      [24897982.428831] usb 3-1: SerialNumber: 0000000004BE


      `01_getdesc` fails to find the device. I tried both with and without sudo.


      $ sudo ./01_getdesc
      No device found


      If I give it explicit VID/PID, then it shows some signs of life:


      $ ./01_getdesc -V 0x04b4 -P 0x00f3
      bLength             = 18
      bDescriptorType     = 1
      bcdUSB              = 0x0200
      bDeviceClass        = 0x00
      bDeviceSubClass     = 0x00
      bDeviceProtocol     = 0x00
      bMaxPacketSize      = 64
      idVendor            = 0x04b4
      idProduct           = 0x00f3
      bcdDevice           = 0x0100
      iManufacturer       = 1
      iProduct            = 2
      iSerialNumber       = 3
      bNumConfigurations  = 1


      As far as I know, the VID and PID (0x04b4/0x00f3) are the correct values for the USB bootloader.  I was able to get all of this to work on Windows, with the jumpers in the correct position. So I know the hardware is good, and I hope that my understanding of how the image is installed is good.  I'm using libusb/1.0.22, and cyusb_linux/1.0.5.


      When I try to install a demo image (with or without sudo), it fails:


      $ sudo ./download_fx3 -t RAM -i ../fx3_images/cyfxbulksrcsink.img
      Error: No FX3 device found