【问题标题】:Programming a CPLD using Raspberry Pi and a JTAG HS3 cable使用 Raspberry Pi 和 JTAG HS3 电缆对 CPLD 进行编程
【发布时间】:2018-08-31 14:58:12
【问题描述】:

当文件 (.jed) 位于 Raspberry Pi 3B+ (Raspbian Lite) 上并且 Raspberry 和 CPLD 设备之间使用 JTAG HS3 电缆连接时,如何对 CPLD 设备 (XC2C32A) 进行编程?

【问题讨论】:

    标签: raspberry-pi raspberry-pi3 jtag


    【解决方案1】:

    当文件 (.jed) 位于 Raspberry Pi 3B+ (Raspbian Lite) 上并且 Raspberry 和 CPLD 设备之间的连接使用 JTAG HS3 电缆时,为了对 CPLD 设备 (XC2C32A) 进行编程,该软件可以使用 Adept 2。

    以下是必要的:

    • Digilent JTAG-HS3 电缆
    • 覆盆子需要安装 Adept 2 运行时和实用程序 (ARM - Raspberry Pi)。更多信息请关注link
    • 使用 JTAG 电缆将设备连接到树莓派

    现在可以执行以下python3脚本:

    import subprocess
    
    # Read if the JTAG-HS3 is there
    result = subprocess.check_output(
            ("djtgcfg enum"), 
            stderr=subprocess.STDOUT, shell=True).decode('utf-8')
    print(result)
    
    # Initialize chain to detect device. The -d option is used to specify the device
    result = subprocess.check_output(
            ("djtgcfg init -d JtagHs3"), 
            stderr=subprocess.STDOUT, shell=True).decode('utf-8')
    print(result)
    
    # Erase the Device
    result = subprocess.check_output(
            ("djtgcfg erase -d JtagHs3 -i 0"), 
            stderr=subprocess.STDOUT, shell=True).decode('utf-8')
    print(result)
    
    # Programming the Device. The -i option is used to specify the chain index and -f to specify the .jed file.
    result = subprocess.check_output(
            ("djtgcfg prog -d JtagHs3 -i 0 -f myfile.jed"), 
            stderr=subprocess.STDOUT, shell=True).decode('utf-8')
    print(result)
    

    【讨论】:

      猜你喜欢
      • 2013-08-27
      • 2021-09-27
      • 1970-01-01
      • 2021-06-03
      • 2020-09-15
      • 2014-10-13
      • 1970-01-01
      • 2020-10-25
      • 1970-01-01
      相关资源
      最近更新 更多