无法使用 vid 0403、pid 6010 打开 ftdi 设备

问题描述 投票:0回答:2

我正在尝试为我的 ECP5 评估板构建 this 示例。它运行良好,直到应该开始上传到 FPGA。然后它给了我这个错误:

Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description 'Lattice ECP5 Evaluation Board', serial '*' at bus location '*'

make: *** [Makefile:18: prog] Error 1

lsusb
的输出,注意vid 0403和pid 6010的设备在那里:

0403:6010 (bus 1, device 4) path: 1
1d6b:0002 (bus 1, device 1)
80ee:0021 (bus 2, device 2) path: 1
1d6b:0001 (bus 2, device 1)

连接设备后

dmesg
的输出:

[   99.954483] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
[   99.954564] usb 1-1: Detected FT2232H
[   99.962509] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1

我不明白为什么它就在那里找不到设备。我在虚拟机中运行 Ubuntu 20.04.3 LTS。我已经安装了扩展包并将usb设备传递给这台机器。

我已经通过 apt install 安装了以下软件包:libftdi-dev libftdi1 libusb-dev.

fpga ftdi
2个回答
4
投票

我需要为非 root 用户添加访问设备的权限。我通过使用以下内容创建文件 /etc/udev/rules.d/ecp5.rules 来做到这一点:

SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", MODE="0666"

-1
投票

谢谢。可以确认它有效,有轻微错别字:ATTRS 和其他文件一样

© www.soinside.com 2019 - 2024. All rights reserved.