一,安装前准备 1,软件安装平台:CentOS 5.52,开发板硬件环境:Mini24403,下载最新版http://www.linuxidc.net/thread-2217-1-1.html
,当前版本Openocd-0.4.0安装时参考文章http://www.linuxidc.com/Linux/2011-05/35966.htm
这里http://www.linuxidc.com/Linux/2011-05/35967.htm说,很重要的一步是安装libusb工具。不安装,编译openocd 时会提示找不到usb.h文件,该文件即为libusb工具的头文件。该工具可在
sourceforge上找到。但是我在安装之前没有安装这个libusb库,也没发现有报错问题,这可能与具体的系统软件环境有关。 二,安装过程(安装时还要注意参考OpenOCD Manual)1,解压当前目录下[root@localhost ~]# unzip /smbroot/openocd-0.4.0.zip 3,进入openocd目录[[root@localhost ~]# cd openocd-0.4.0[root@localhost openocd-0.4.0]# [root@localhost openocd-0.4.0]# lsaclocal.m4 config.guess configure.in doc ltmain.sh NEWS TODOAUTHORS config.h.in contrib Doxyfile.in Makefile.am README toolsChangeLog config.sub COPYING INSTALL Makefile.in srccompile configure depcomp install-sh missing tcl[root@localhost openocd-0.4.0]# 4,执行 configure 配置命令在执行配置命令之前,先了解下相关配置选项的作用。有关configure 配置参数可参考http://www.linuxidc.com/Linux/2011-05/35968.htm--prefix=PREFIX 用来指定安装位置,默认是安装在/usr/local/下--enable-FEATURE用来启用被禁用的特性,FEATURE是特性的名字root@localhost openocd-0.4.0]# ./configure --enable-jlinkchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yes...... ......config.status: executing depfiles commandsconfig.status: executing libtool commands[root@localhost openocd-0.4.0]# 5,然后执行make 编译和make install安装[root@localhost openocd-0.4.0]# make...... ......[root@localhost openocd-0.4.0]# make install...... ...... make install-data-hookmake[3]: Entering directory `/root/openocd-0.4.0"for i in $(find ./tcl -name "*.cfg" -o -name "*.tcl" | sed -e "s,^./tcl,,"); do
j="/usr/local/share/openocd/scripts/$i" &&
mkdir -p "$(dirname $j)" &&
/usr/bin/install -c -m 644 ./tcl/$i $j;
donemake[3]: Leaving directory `/root/openocd-0.4.0"make[2]: Leaving directory `/root/openocd-0.4.0"make[1]: Leaving directory `/root/openocd-0.4.0"[root@localhost openocd-0.4.0]# 6,查看安装结果,[root@localhost openocd-0.4.0]# openocd -vOpen On-Chip Debugger 0.4.0 (2011-03-28-11:40)Licensed under GNU GPL v2For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html[root@localhost openocd-0.4.0]# 清除安装时产生的中间文件[root@localhost openocd-0.4.0]# make distcleanMaking distclean in doc..... ......rm -f Makefile[root@localhost openocd-0.4.0]#
Ubuntu 更改主机名显示路径Ubuntu下用Eclipse CDT开发STM32相关资讯 Eclipse Openocd
- Eclipse中将Java项目转换成Web项目 (07月28日)
- 用 Python 打造你的 Eclipse (04月26日)
- Eclipse基金会发布下一代IDE, (03月11日)
| - Linux 下搭建stm32开发环境 (07月01日)
- 如何在Eclipse中添加Tomcat的jar包 (03月23日)
- 基于Eclipse搭建STM32开源开发环境 (03月10日)
|
本文评论 查看全部评论 (1)
评论声明- 尊重网上道德,遵守中华人民共和国的各项有关法律法规
- 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
- 本站管理人员有权保留或删除其管辖留言中的任意内容
- 本站有权在网站内转载或引用您的评论
- 参与本评论即表明您已经阅读并接受上述条款
|