Linux SDK: 01_getdesc can't find any device

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

cross mob
doch_3739346
Level 4
Level 4

Hi,

I've downloaded Linux SDK; cd cyusb_linux_1.0.5, make; cd cyusb_linux_1.0.5/src, make.

dgc@ensigma-lab: ~/shared/USB/FX3_SDK_1.3.4_Linux/cyusb_linux_1.0.5/src$ make

g++ -o 00_fwload            00_fwload.cpp            -L ../lib -l cyusb

g++ -o 01_getdesc           01_getdesc.cpp           -L ../lib -l cyusb

g++ -o 03_getconfig         03_getconfig.cpp         -L ../lib -l cyusb

g++ -o 04_kerneldriver      04_kerneldriver.cpp      -L ../lib -l cyusb

g++ -o 05_claiminterface    05_claiminterface.cpp    -L ../lib -l cyusb

g++ -o 06_setalternate      06_setalternate.cpp      -L ../lib -l cyusb

g++ -o 08_cybulk            08_cybulk.cpp            -L ../lib -l cyusb -l pthread

g++ -o 09_cyusb_performance 09_cyusb_performance.cpp -L ../lib -l cyusb -l usb-1.0

g++ -o download_fx2         download_fx2.cpp         -L ../lib -l cyusb

g++ -o download_fx3         download_fx3.cpp         -L ../lib -l cyusb

g++ -o cyusbd               cyusbd.cpp               -L ../lib -l cyusb

gcc -o config_parser        config_parser.c          -L ../lib -l cyusb

01_getdesc reports "No device found".

dgc@ensigma-lab: ~/shared/USB/FX3_SDK_1.3.4_Linux/cyusb_linux_1.0.5/src$ ./01_getdesc

No device found

HW is running fine in Windows environment. How to solve this issue?

0 Likes
1 Solution

Found the reason, need to run as root.

pastedImage_0.png

View solution in original post

0 Likes
8 Replies
doch_3739346
Level 4
Level 4

Confirmed USB cable is good and it's USB 2.0 port.

dgc@ensigma-lab: ~/shared/USB/FX3_SDK_1.3.4_Linux/cyusb_linux_1.0.5$ lsusb

Bus 002 Device 013: ID 204a:0002 

Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 003: ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard

Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

0 Likes

From dmesg, it can detect FX3, not sure why command failed.

[12813.036243] usb 2-1.7: new high-speed USB device number 3 using ehci-pci

[12813.146009] usb 2-1.7: New USB device found, idVendor=204a, idProduct=0002

[12813.146013] usb 2-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[12813.146015] usb 2-1.7: Product: FX3

[12813.146018] usb 2-1.7: Manufacturer: Cypress

[14688.609582] usb 2-1.7: USB disconnect, device number 3

0 Likes

Modified source code, add some prints.

dgc@ensigma-lab: ~/shared/USB/FX3_SDK_1.3.4_Linux/cyusb_linux_1.0.5/src$ ./01_getdesc  -V 0x204a -P 0x0002

VID 204a

PID 2

r = cyusb_open(204a, 2)

Device not found

r = ffffffed

Error opening library

0 Likes

If run without parameters, it will give different message.

dgc@ensigma-lab: ~/shared/USB/FX3_SDK_1.3.4_Linux/cyusb_linux_1.0.5/src$ ./01_getdesc

r = cyusb_open

Error in opening device

r = fffffff3

Error opening library

0 Likes

Hello,

Please build the files in the 'src' directory using the 'make' command without any modifications and use the below command.

./01_getdesc -V 0x204A -P 0x0002

This displays the device descriptor details.

pastedImage_0.png

Best regards,

Srinath S

0 Likes

I've removed existing folder and unzip cyusb_linux_1.0.5, run below commands, lsusb can find device, but getdesc still failed.

pastedImage_1.png

pastedImage_0.png

0 Likes

Found the reason, need to run as root.

pastedImage_0.png

0 Likes

Hello,

Thanks for the update.

Best regards,

Srinath S

0 Likes