openOCD在ubuntu16.04上的安装
来源:互联网 发布:android网络访问404 编辑:程序博客网 时间:2024/05/03 04:25
OPENOCD适用于微处理器的debug和烧写。
1.下载相关库:
sudo apt-get install build-essential pkg-config autoconf automake libtool libusb-dev libusb-1.0-0
-dev libhidapi-dev
sudo apt-get install libtool libsysfs-dev
git clone git://git.code.sf.net/p/openocd/code openocd
3.编译并安装openocd:
cd openocd
sudo ./bootstrap
sudo ./configure
make
sudo make install
4.测试是否安装成功:
openocd --version
测试如下:
Open On-Chip Debugger 0.10.0+dev-00207-g4109263 (2017-11-14-20:14)Licensed under GNU GPL v2For bug reports, readhttp://openocd.org/doc/doxygen/bugs.html
一些错误:
错误1:./bootstrap 报错:
+ automake --gnu --add-missing --copysrc/Makefile.am:4: error: bad characters in variable name '%C%_openocd_SOURCES'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:7: error: bad characters in variable name '%C%_libopenocd_la_SOURCES'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:11: error: bad characters in variable name '%C%_openocd_LDADD'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:13: error: bad characters in variable name '%C%_openocd_LDADD'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:16: error: bad characters in variable name '%C%_openocd_LDADD'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:18: error: bad characters in variable name '%C%_openocd_LDADD'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:21: error: bad characters in variable name '%C%_libopenocd_la_CPPFLAGS'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:26: error: bad characters in variable name '%C%_libopenocd_la_CPPFLAGS'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:27: error: bad characters in variable name '%C%_libopenocd_la_CPPFLAGS'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:29: error: bad characters in variable name '%C%_libopenocd_la_CPPFLAGS'Makefile.am:143: 'src/Makefile.am' included from heresrc/Makefile.am:30: error: bad characters in variable name '%C%_libopenocd_la_CPPFLAGS'Makefile.am:143: 'src/Makefile.am' include
sudo ./bootstrap
+ aclocal+ libtoolize --automake --copy+ autoconfconfigure.ac:12: error: possibly undefined macro: AC_MSG_WARN If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.configure.ac:36: error: possibly undefined macro: AC_DISABLE_SHAREDconfigure.ac:37: error: possibly undefined macro: AC_PROG_LIBTOOLconfigure.ac:204: error: possibly undefined macro: AC_DEFINEconfigure.ac:608: error: possibly undefined macro: AC_MSG_NOTICE
缺少libtool和libsysfs-dev
安装:
sudo apt-get install libtool libsysfs-dev
阅读全文
0 0
- openOCD在ubuntu16.04上的安装
- Cryptdb在Ubuntu16.04上的安装
- Mini2440交叉编译工具在Ubuntu16.04上的安装
- realsense R200在Ubuntu16.04上的安装
- ncurses-5.9在Ubuntu16上的安装
- 在ubuntu16.04上安装mysql
- 在Ubuntu16.04上安装Emacs
- 在 Ubuntu16.04 上安装 LaTeX
- 在Ubuntu16.04上安装国际版QQ
- 在Ubuntu16.04上安装Aegisub
- 如何在ubuntu16.04上安装jdk
- 在windows10上安装Ubuntu16.04教程
- 在Ubuntu16.04上安装QQ
- 在 Ubuntu16.04 上安装 OpenCV3.2.0
- 在 Ubuntu16.04 上安装 LaTeX
- 在vmware上安装ubuntu16.04
- Caffe-OpenCL在ubuntu16.04.2上的简要安装指南
- Caffe-OpenCL在ubuntu16.04.2上的简要安装指南
- 将数组A中的内容和数组B中的内容进行交换。(数组一样大)
- RPC中nio和代理模式的应用
- Dijkstra POJ
- JS获取-某一天是某个时间段内的 第几周,星期几
- Visualizing and understandingConvolutional Networks笔记3
- openOCD在ubuntu16.04上的安装
- List在调用add、remove方法后报java.lang.UnsupportedOperationException
- ArcGIS Engine中 IGeometry和Json字符串的相互转换
- MySQL优化分库分表,为什么要分表,分表以后如何进行排序查询,业务如何设计?
- 云服务器 ECS配置MySQL主从连接
- 实验测试1《C++ Primer》第五版——第九章 顺序容器
- web前端-HTML知识体系(初学者)
- yii 增 利用model
- java学习练习题