|
本帖最后由 wjandsq 于 2017-3-2 13:27 编辑 简体中文嵌入式开发环境Eclipse Neon-2安装说明(2017-03-02更新) -Eclipse Neon-2 + GNU Tools ARM Embedded + System Workbench for STM32 关键字: 1 生态系统:运用相同CPU架构的开发环境工具的组合,如操作系统、编译器3和调试器以及开发人员、 解决方案提供商以及共同构成主要业务的其他人员的集合。 IT业务使用“生态系统”这一术语, 是为了表示与生态系统的相似。 2 开发环境: Eclipse Neon-2 是开发环境,包含了编辑器、调试环境(调试器插件)。 3 编译器:将程序源代码转换成可在微控制器上运行的机器可读代码的软件。 GNU Tools ARM Embedded 是编译器。 System Workbench for STM32也是编译器,基于GNU Tools ARM Embedded 改进,直接支持导入stm32cubemx输出的工程。 4 仿真器/调试器: 可以将编译器生成的二进制文件写入微控制器并监控其运行的开发工具。 前言 GNU 计划介绍 RichardStallman在1983年9月27日公开发起的GNU计划,目标是重现软件界合作互助的团结精神,所有的GNU软件, 遵循GNU通用公共许可协议(GNU General Public License,GPL),可以自由地“使用、复制、修改和发布, 和商业软件完全不同,禁止其他人添加任何使用上的条件限制。 GNU ARM Eclips 介绍 GNU ARM Eclipse 是一个开源项目,它基于 GNU 工具链,为多平台嵌入式开发提供了一个系列的Eclipse 插件和工具。 这个项目托管在 Github 和 SourceForge 上。 The GNU ARM Eclipse plug-ins 介绍 这些插件为 GNU ARM 工具链 提供 Eclipse CDT (C/C++ 开发工具) 的扩展性功能,GNU ARM 工具链包含一些列工具, 比如用于 ARM 嵌入式处理器开发的 GNU 工具,Linaro,等等。 ARM除了发布 MDK-ARM、MDK-DS等商业编译器,还提供遵循GPL协议的 GNU ARM 编译工具链,通过和Eclipse、 GNU ARM Eclipse plug-ins及Additional tools 的配合,可以很轻松的构建一个完整的免费开发环境。 Additional tools 除了主要的Eclipse插件集合,GNU 计划还包括了几个额外的工具,这些工具以独立的打包文件发布。 GNU ARM Eclipse Windows Build Tools 子项目 GNU ARM Eclipse Windows 构建工具包括一些 Windows 平台上需要的额外工具,比如 make 和 rm。 GNU ARM Eclipse OpenOCD 子项目 GNU ARM Eclipse OpenOCD是 OpenOCO 的最新子项目,主要是为了更方便地更好地和 GNU ARM OpenOCD 调试插件集成。 GNU ARM Eclipse QEMU GNU ARM Eclipse QEMU 是 QEMU 项目的一个分支,目的是为了在 GNU ARM Eclipse 项目中支持Cortex-M 的模拟器。 正文: 1.JRE 安装 jre-8u121-windows-x64.exe 离线安装包 http://www.java.com/en/download/manual.jsp 2.GNU Tools ARM Embedded http://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-win32.exe 3.Eclipse IDE for C/C++ Developers (1) 访问 http://www.eclipse.org/downloads/packages/ 获得当前 Eclipse IDE for C/C++ Developers 最新版本 (2) 64位版本 eclipse-cpp-neon-2-win32-x86_64.zip http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/neon/2/eclipse-cpp-neon-2-win32-x86_64.zip 4.GNU ARM C/C++ Development Support (1) GNU ARM Eclipse plug-ins 当前版本: ilg.gnuarmeclipse.repository-3.3.1-201702251311.zip 在线安装: http://gnuarmeclipse.sourceforge.net/updates 在线安装是最难的,因为在线安装必须保证网速稳定,否则不断失败,重试N次不能成功! 建议在线安装的时间,早上6:00-8:00。 GNU ARM Eclipse Plug-ins 插件安装说明: http://gnuarmeclipse.github.io/plugins/install/ (2) gnuarmeclipse-build-tools 当前版本: gnuarmeclipse-build-tools-win64-2.8-201611221915-setup.exe 更新网址: http://github.com/gnuarmeclipse/windows-build-tools/releases (3) openocd 当前版本: gnuarmeclipse-openocd-win64-0.10.0-201701241841-setup.exe 更新网址: http://github.com/gnuarmeclipse/openocd/releases (4) qemu 当前版本: gnuarmeclipse-qemu-win64-2.8.0-201612271623-dev-setup.exe 更新网址: http://github.com/gnuarmeclipse/qemu/releases (5) stlink jlink driver 安装 en.stsw-link004.zip (STM32 ST-LINK Utility_v3.9.0) 包含stlink驱动 JLink_Windows_V614.exe Jlink驱动 5.简体中文语言包 babel-R0.14.1-neon.zip 自行搜索这个多国语言包,下载安装简体中文项目。 eclipse 界面可以自由切换 简体中文/英文 两种界面。 6.STM32CubeMX插件安装 STM32CubeMX当前版本为4.19.0,插件下载网址: http://www.stmicroelectronics.com.cn/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stsw-stm32095.html 7.功能强大的 System Workbench for STM32 System Workbench for STM32 在线安装网址: http://test.ac6-tools.com/Eclipse-updates/org.openstm32.system-workbench.site/ System Workbench for STM32 特点说明: (1). 支持直接导入(也就是打开)STM32CubeMX 生成的工程。 (2). 支持STLINK,Jlink的调试。 (3). 支持StdPeriph驱动库和HAL驱动库。 (4). 支持多个C文件的并行编译(编译速度至少是MDK-ARM的4-8倍,速度取决于CPU核心数)。 (5). 支持不用编译就能查看函数原型,数据类型原型(GCC编辑器特性)。 (6). 支持灰色显示预编译控制即将剔除不用的代码区域。 (7). 免费,无版权纠纷。 声明:由于软件的更新,本文具有时效性,有效期仅为1-3个月。 软件安装方法/步骤: 1.jre install jre-8u121-windows-x64.exe 2.gcc-arm install gcc-arm-none-eabi-5_4-2016q3-20160926-win32.exe 3.eclipse-cpp-neon-2 install http://mirrors.ustc.edu.cn/eclip ... -2-win32-x86_64.zip 4.GNU Tools ARM Embedded (1).GNU ARM Eclipse plug-ins You should click on "Add:" Then give a name to the update site (GNU ARM Eclipse plug-ins) and set the location to http://gnuarmeclipse.sourceforge.net/updates Then click "OK" to create the update site (2).windows-build-tools install http://gnuarmeclipse.github.io/windows-build-tools/install/ gnuarmeclipse-build-tools-win64-2.6-201507152002-setup.exe click to install 5.System Workbench for STM32 - Bare Metal Edition install How to install System Workbench for STM32 - Bare Metal Edition: Create a new update site, to install System Workbench for STM32 - Bare Metal Edition: You should click on "Add:" Then give a name to the update site (System Workbench for STM32 - Bare Machine edition) and set the location to http://www.openstm32.org/Eclipse ... stem-workbench.site Then click "OK" to create the update site The second site is: http://test.ac6-tools.com/Eclips ... tem-workbench.site/ 2017-03-02 recording by wjandcf@gmail.com |
微信公众号
手机版
百度网盘限时下载。
Eclipse Neon-2并行编译特性的重要说明
一般的PC机上的商业编译器不支持并行编译功能,比如IAR、MDK-ARM等。
多核并行编译特性,可以在工程文件比较多的情况下,充分发挥多CPU或多核的优势,是大型机上的思路。
例如一个公共头文件的内容发生改变,所有包含该头文件的C文件都需要重新编译,利用STM32CubeMX设计工具生成的空白
工程模板,通常全部编译需要2-4分钟,而Eclipse Neon-2 默认的build工具,只需要开启并行编译功能,一般的四核CPU,
就可以将全部编译的时间缩短至30-50秒。
并行编译对于建立一个比较好的工程模板,前期的编译效率提升非常明显,这就是最近我才开始重点推荐
Eclipse Neon-2开发环境的原因。