zoukankan      html  css  js  c++  java
  • CyUSB_Linux 调试笔记

    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

      

  • 相关阅读:
    Appium Python 六:管理应用和Activity
    Loadrunner 11 遇到的问题
    LoadRunner 测试 Mysql
    LoadRunner录制:集合点
    此博客停止更新
    Mac:文件夹树型展示 tree
    Postman-CI集成Jenkins
    Django-数据模型
    Django-简单项目创建
    Django-安装篇
  • 原文地址:https://www.cnblogs.com/dhqy/p/15702487.html
Copyright © 2011-2022 走看看