Cannot connect to FPGA: getDeviceCount() returns 0 (C/Cpp)


#1

Hi,

I’m refactoring some old working code that communicates with an OpalKelly ZEM4310 on a different OS (Ubuntu 16.04 LTS ) to what it was written in (Windows 10, probably).

When I call getDeviceCount(), I get 0, and when I called OpenBySerial(), it fails.

I have added the OpalKelly rules to my /etc/udev/rules.d, which contains:

SUBSYSTEM==“usb_device”, SYSFS{idVendor}==“151f”, MODE=“0666”
SUBSYSTEM==“usb”, ATTRS{idVendor}==“151f”, MODE=“0666”

And when I power the board on and check lsusb when plugged in and not plugged in, I get that a device is present:

Bus 002 Device 006: ID 151f:0120

So, is there a guide on the proper process to get OpalKelly API to work using USB3.0 on Linux/Ubuntu 16.04? Thanks for your time.


#2

This turned out to be a problem with linking against the opalkelly .so