Windows 环境下 GNU ARM 开发环境建立

本文介绍如何搭建Eclipse C/C++集成开发环境,包括安装Eclipse IDE for C/C++ Developers、配置JRE环境、安装GNU ARM工具链及插件、设置OpenOCD等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、Eclipse集成开发环境

1.1、Eclipse维基百科:

http://zh.wikipedia.org/zh/Eclipse

1.2、下载安装JRE(Java Runtime Environment,Java运行时环境):

Eclipse是Java软件,运行时必须要JRE。

http://www.java.com/zh_CN/download/manual.jsp

image 

1.3、下载安装Eclipse IDE for C/C++ Developers:

为了方便可以直接下载Eclipse IDE for C/C++ Developers进行安装,

Hint:
You will need a Java runtime environment (JRE) to use Eclipse (Java 5 JRE recommended).

http://www.eclipse.org/downloads/

image

也可以在现有的Eclipse上增加安装CDT插件,用于C/C++开发,

http://www.eclipse.org/cdt/downloads.php

image

Please note that there is a known problem with installing the optional GDB Hardware Debugging feature in CDT 7.0.1 (Bug 326176).

To install the optional GDB Hardware Debugging feature, please use this build: cdt-master-7.0.1-I201009241320.

http://download.eclipse.org/tools/cdt/builds/7.0.1/I.I201009241320/index.html

image

2、GNU ARM toolchain(GNU ARM 交叉编译工具链):

2.1、GNU ARM 交叉编译工具链选择Sourcery G++ Lite Edition for ARM

http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite

image

2.2、GNU ARM Eclipse Plug-in

This plug-in is an Eclipse CDT Manged Build Extension for GNU ARM Toolchains like CodeSourcery G++ Lite, GNUARM, WinARM, Yagarto, devkitPro.

http://sourceforge.net/projects/gnuarmeclipse/

http://sourceforge.net/apps/mediawiki/gnuarmeclipse/index.php?title=Main_Page

image 

3、OpenOCD(Open On-Chip Debugger):

3.1、OpenOCD官方主页:

http://openocd.berlios.de/web/

image

3.2、一个已经编译好的Windows版本OpenOCD安装软件 。

OpenOCD - Open On Chip Debugger. Debugger for ARM cores - Windows installers of compiled releases.

OpenOCD 0.4.0 for Windows. An msi installer of complete package and it's md5 checksum.

Due to alleged GPLv2 license incompatibility of using ftd2xx.dll libraries, this version was compiled to use

libftdi + libusb-win32 libraries.

http://www.freddiechopin.info/index.php/en/download/category/4-openocd

image

3.3、在OpenOCD安装软件中已经包含了libftdi的库文件,不需要自己动手编译。

http://www.intra2net.com/en/developer/libftdi/

image

3.4、在OpenOCD安装软件中已经包含了libusb的库,不需要自己动手编译,

http://www.libusb.org/

image

但需要为你的USB JTAG调试器安装libusb驱动。

http://www.libusb.org/wiki/windows_backend

image

注意:使用zadig.exe安装的驱动在OpenOCD中不能正常使用,请从以下地址下载驱动

image

http://sourceforge.net/apps/trac/libusb-win32/wiki

image

http://sourceforge.net/projects/libusb-win32/

image

转载于:https://www.cnblogs.com/arci/archive/2011/01/26/1945762.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值