随笔 - 216  文章 - 0 评论 - 2 阅读 - 24万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

1. 安装 libusb 库

sudo apt-get install libusb-dev
sudo apt-get install libusb-1.0-0-dev

 

2. 安装 qt4

sudo apt-get install build-essential
sudo apt-get install qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer qtcreator

qmake -v
qtcreator -version

 

 3. 修改 /etc/cyusb.conf,在 VPD 段追加我们自定义的 VID/PID(04b4 FFF2 FX3 AEConsole USB2.0 和 xxx USB3.0)

复制代码
# This is the main configuration file for Cypress USB FX2 and FX3 devices
# All lines beginning with a # in the first column is treated as a comment
# Blank lines are ignored
# Author    - V. Radhakrishnan ( www.atr-labs.com )
# Copyright - ATR Educational Devices (P) Ltd and Cypress Semiconductors Inc.
# Date      - March 7, 2012
# License   - GNU Lesser General Public License (LGPL) 2.1
#---------------------------------------------------------------------------

# Location of logfile for the Cypress USB daemon process 'cyusbd'
# Ensure that you have write permission in that directory, if you are non-root.

LogFile=cyusbd.log

# Location of PID file for the Cypress USB daemon process 'cyusbd'
# Ensure that you have write permission in that directory, if you are non-root.

PIDFile=cyusbd.pid

# Vital Product Data : Vendor/Device IDs - one per line.
# Format - vendorID    DeviceID    FriendlyName (Max 30 chars or end of line)

<VPD>
04b4    8613        Default Cypress USB device
04b4    4717        Default Cypress USB device
04b4    0082        FX2 Device: Custom PID from EEPROM
04b4    1004        FX2LP Bulk Device
04b4    1003        FX2LP CY-Stream Device
04b4    00BC        Cypress Benicia device
04b4    00F0        FX3 Example Application
04b4    00F1        FX3 Streamer Example
04b4    00F3        FX3 Boot-loader
04b4    4720        FX3 I2C/SPI Programmer
04b4    1005        FX3 2nd stage boot-loader
04b4    FFF2        FX3 AEConsole USB2.0
04b4    FFF3        FX3 AEConsole USB3.0 
</VPD>
View Code
复制代码

 

 

  

 

posted on   青叶煮酒  阅读(603)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
点击右上角即可分享
微信分享提示