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

      

  • 相关阅读:
    Java [Leetcode 191]Number of 1 Bits
    Java [Leetcode 235]Lowest Common Ancestor of a Binary Search Tree
    Java [Leetcode 169]Majority Element
    Java [Leetcode 171]Excel Sheet Column Number
    Java [Leetcode 217]Contains Duplicate
    Java [Leetcode 242]Valid Anagram
    Java [Leetcode 100]Same Tree
    Java [Leetcode 258]Add Digits
    Java [Leetcode 104]Maximum Depth of Binary Tree
    D365 FO财务维度
  • 原文地址:https://www.cnblogs.com/dhqy/p/15702487.html
Copyright © 2011-2022 走看看