cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

malac_4026241
New Contributor

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

0 Likes
1 Solution
malac_4026241
New Contributor

I found the solution.  The file /etc/cyusb.conf did not exist.  I was attempting to make the installation work with just user-mode files, so I did not copy files to the /etc folder.

There should be a warning if /etc/cyusb.conf does not exist or is not readable! There was another discussion on this website with the same failure mode that went away when the user ran as root. It is probably a file permissions error, where /etc/cyusb.conf was not readable.

The alternative is that the fx3_download application should take VID and PID arguments so that /etc/cyusb.conf is not necessary.

View solution in original post

0 Likes
4 Replies
YangyangC_06
Employee

Hi Mark,

Are you using FX3 SDK v1.3.4?

0 Likes
YangyangC_06
Employee

I checked SDK v1.3.3 and everything is fine here.

0 Likes
malac_4026241
New Contributor

I found the solution.  The file /etc/cyusb.conf did not exist.  I was attempting to make the installation work with just user-mode files, so I did not copy files to the /etc folder.

There should be a warning if /etc/cyusb.conf does not exist or is not readable! There was another discussion on this website with the same failure mode that went away when the user ran as root. It is probably a file permissions error, where /etc/cyusb.conf was not readable.

The alternative is that the fx3_download application should take VID and PID arguments so that /etc/cyusb.conf is not necessary.

View solution in original post

0 Likes
YangyangC_06
Employee

Thanks for your suggestion. I will update it to software team.

0 Likes