1. 下载openocd
    http://openocd.org/

2.解压
unzip openocd-0.10.0.zip

  1. 配置
    ./configure --enable-ftdi --enable-openjtag
    报错,提示需要安装libftdi

  2. 安装libftdi

  3. 继续配置
    ./configure --enable-ftdi --enable-openjtag
    报错,提示找不到libusb-1
    configure: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead
    configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices

安装libftdi的时候已经安装过libusb-1.0了,应该是路径问题
我的libusb-1.0安装在/usr/local/lib下
控制台执行如下命令
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH
再次执行./configure --enable-ftdi --enable-openjtag,通过

  1. 编译安装
    make
    make install

相关文章:

  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-12-16
  • 2021-12-14
猜你喜欢
  • 2021-11-14
  • 2021-10-22
  • 2022-12-23
  • 2021-06-20
  • 2021-10-10
  • 2021-10-05
  • 2021-09-09
相关资源
相似解决方案