GNU MCU Eclipse插件可以支持STM32、RISC-V等嵌入式设备的开发,它的官方地址为https://gnu-mcu-eclipse.github.io/,其中有详细的安装资料和说明。

Install GNU Arm Embedded Toolchain

GNU Arm Embedded Toolchain内置了对于Arm Cortex-M and Cortex-R processors的支持。

https://developer.arm.com/open-source/gnu-toolchain/gnu-rm

Install Windows Build Tools

如果操作系统是Windows,则需要安装构建工具,包含了make和rm等命令。

GNU MCU Eclipse Windows Build Tools可以从如下地址下载:

https://github.com/gnu-mcu-eclipse/windows-build-tools/releases

下载后请将插件解压到%userprofile%\AppData\Roaming\GNU MCU Eclipse路径,因为插件会默认在这个路径搜索,例如:C:\Users\jilili\AppData\Roaming\GNU MCU Eclipse文件夹。

如果在其它路径则需要对Eclipse进行配置:

Windows Preferences => MCU => Global Build Tools Path中如入例如如下内容:

C:/Program Files (x86)/GNU ARM Eclipse/Build Tools/2.4-201503242026/bin

Install GNU MCU Eclipse or Plug-ins

如果之前没有安装Eclipse,建议下载已经集成好的 GNU MCU Eclipse IDE for C/C++ Developers它基于Eclipse IDE for C/C++ Developers的官方版本,并且已经内置了GNU MCU Eclipse plug-ins

如果你已经有Eclipse请从 Eclipse Marketplace中搜索GNU MCU Eclipse进行安装。

如果你想人工逐步安装请参考如下步骤

下载Eclipse Neon(4.6)的"Eclipse IDE for C/C++ Developers"版本

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/3/eclipse-cpp-neon-3-win32-x86_64.zip

安装"The GNU MCU Eclipse plug-ins"插件,插件的官方首页为:https://github.com/gnu-mcu-eclipse/eclipse-plugins

Eclipse=>Help=>Install New Softwares,输入如下地址并进行安装:

http://gnu-mcu-eclipse.netlify.com/v4-neon-updates

建立STM32FXX项目

https://gnu-mcu-eclipse.github.io/templates/stm32f/

注意:如果在创建项目过程中的“Target processor settings”页面选择了“Exclude unused”并且你在后面使用了USART或者TIMER之类的操作将不能编译通过。如果已经发现这些错误请做如下操作将排除的文件添加进来:

Project => Properties => C/C++ General => Paths and Symbols => Source Locations下的/%projectname%/system的Filter中移除对应的.c文件

[ 编辑 | 历史 ]
最近由“jilili”在“2018-10-05 13:45:11”修改