Tutorial: How to install GNU MCU Eclipse?
Overview
For more flexibility and upgradeability, GNU MCU Eclipse is not packed as a all-inclusive suite to be installed in a single step. However, the separate steps are relatively easy to perform, and installing the plug-ins and the tools can be successfully completed even by non-experienced users.
为了获得更灵活、可升级的特性,GUN MCU Eclipse 没有在单步安装中集成所有内容的套件。然而,独立步骤也是相对简单的,并且安装插件与工具甚至对于没有经验的用户来说也是可以成功完成的。
Note for beginners: If performed for the first time, it is recommended to follow the steps by the book and avoid poetic licenses, since they might lead to tricky situations and subtle functional problems.
初学者请注意:如果是第一次操作,建议根据 "by the book"步骤,并避免poetic licenses(因为它们可能会导致棘手和微妙的问题)
建议的操作顺序如下所示:
The recommended sequence is described below.
xpm - the xPack Manager
xpm 是一个新的工具,目前还在发展中,意在管理软件包(xPacks),其中包括了安装二进制发行版。
xpm is a new tool, currently under development, intended to manage software packages (xPacks), including to install binary distributions. It is built on top of Node.js and is highly portable; the install steps are described in the xpm install page.
对于 GNU/Linux 用户 : 你的发行版系统中可能已经装有一个
node,如果它的版本小于8,那么xpm会停止并弹出警告。总之,我们强烈建议你避免使用发行版的node,并至少安装Node.js的长期支持包。
Warning for GNU/Linux users: your distribution may already have anodebinary installed; if it is not >= 8.x,xpmwill complain and do not start; anyway, we strongly recommend to avoid the distribution binary and install at least the LTS package from Node.js.
Warning for Windows users: binary packages are .zip files containing .exe files; some aggressive antivirus programs may quarantine those files, or even modify the content of the archives, thus changing the checksum and thus preventing the packages to be installed; either configure or temporarily disable the antivirus if necessary.
目前,xpm不是强制安装的,但它是一个有用的附加部分,因为它提供了便捷的方式来安装以及更新 ARM 与 RISC-V 工具链,PopenOCD,QEMU和 Windows构建工具。
Currently xpm is not mandatory, but it is a useful addition since it provides a convenient way to install and later upgrade the ARM and RISC-V toolchains, OpenOCD, QEMU and the Windows Build Tools.
$ sudo npm install --global xpm@latest
[sudo] password for schips:
/usr/local/bin/xpm -> /usr/local/lib/node_modules/xpm/bin/xpm.js
+ xpm@0.5.0
added 260 packages from 146 contributors in 15.142s
xPack Dev Tools
在2019年中,主要的工具从GNU MCU Eclipse 项目移到了 xPack 项目,而且所有新发布版本都可以通过@xpack-dev-tools获得
In mid-2019, the main binary tools were moved from the GNU MCU Eclipse project to xPack project, and all new releases are available via the @xpack-dev-tools scope.
所有先前的发布版本仍然存在于@gnu-mcu-eclipse中,但这些是过时的版本,不推荐在新项目中使用。
All previous releases are still available in the @gnu-mcu-eclipse scope, but were deprecated and are not recommended for new projects.
Toolchain(s)
通常这一步是强制性的,因为大多数平台在默认情况下都没有嵌入GCC工具链(ARM或RISC-V)。
This is generally mandatory, since most platforms do not come by default with an embedded GCC toolchain (ARM or RISC-V).
Please follow the steps in the ARM Toolchain install or RISC-V Toolchain install page.
For ARM, the easy install method is:
$ xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
For RISC-V, the easy install method is:
$ xpm install --global @xpack-dev-tools/riscv-none-embed-gcc@latest
Windows Build Tools
This step is Windows specific, and it is highly recommended to use the GNU MCU Eclipse Windows Build Tools, and avoid other make.exe programs, even if they apparently work, since subtle differences in path processing exists between different versions of make.
Please follow the steps in the How to install the Windows Build Tools page.
The easy install method is:
$ xpm install --global @gnu-mcu-eclipse/windows-build-tools
POSIX platforms generally include make in the system distribution, or might require to install some developer packages (for example on macOS you need to install the Xcode Command Line Tools).
SEGGER J-Link
SEGGER J-Link is the recommended debugger and, if available, please follow the steps in the How to install the SEGGER J-Link page.
OpenOCD
For the unfortunate developers who do not have a J-Link available, the alternative is to follow the steps in the How to install the OpenOCD binaries page.
The easy install method is:
$ xpm install --global @xpack-dev-tools/openocd@latest
OpenOCD might be needed when using development boards with integrated debuggers, like STM32F4-DISCOVERY boards, although the recommended solution is to prepare a custom cable and connect them to J-Link.
OpenOCD is also needed when using RISC-V boards with integrated debuggers.
QEMU
QEMU is a hardware emulator that can be successfully used to run simple blinky applications, and the default tutorial requires QEMU, so it is highly recommended to install it.
The easy install method is:
$ xpm install --global @xpack-dev-tools/qemu-arm@latest
For more details, please follow the steps in the How to install the QEMU binaries page.
Jumper Virtual Lab
Jumper Virtual lab is an emulator that provides a fast and easy way to execute firmware files on a virtual device running on the development machine. Jumper’s Eclipse plug-in uses the debug framework provided by the GNU MCU Eclipse plug-ins.
To install the Jumper Virtual Lab, use the following links:
Jumper Virtual lab is a product of Jumper Labs Ltd, a third party company not directly related to GNU MCU Eclipse. For questions and further info, please contact Jumper Labs via their support channels.
Java
As a prerequisite for Eclipse, Java is required.
Java is no longer a very hot technology, so it is generally not available by default on most platforms and requires separate installation.
More details are available in the How to install the GNU MCU Eclipse plug-ins page.
Eclipse & CDT
Eclipse is the development platform where the GNU MCU Eclipse plug-ins run. Generally it is not available by default on most platforms and requires separate installation.
The simple way is to download GNU MCU Eclipse IDE for C/C++ Developers from GitHub Releases and you get at once both Eclipse CDT and the MCU plug-ins.
If you prefer the manual way, be sure you install the Eclipse IDE for C/C++ Developers, not other package, since otherwise you’ll have to manually install CDT.
More details are available in the How to install the GNU MCU Eclipse plug-ins page.
Note: on GNU/Linux be sure you manually install the Eclipse; DO NOT try to install it via the Synaptics package manager, or similar, since usually you get an older version and the CDT plug-ins are not included.
Plug-ins
Once the Java & Eclipse are functional, please proceed with plug-ins install, as explains in the How to install the GNU MCU Eclipse plug-ins page.
Workspace preferences
It is highly recommended that this step be performed after creating each and any Eclipse workspace; for this please follow the steps in the Workspace preferences page.
CMSIS packages
To assist the debugger in finding the peripheral registers definitions, please check the The CMSIS Packs manager page, and install the CMSIS packs for the family of devices used by your projects.m
Tutorial: How to install GNU MCU Eclipse?的更多相关文章
- GNU ARM eclipse 安装--Linux 版本
官方网站:https://gnu-mcu-eclipse.github.io/ 1. 工具链安装 1.1 xpm 安装 安装 nodejs: sudo apt-get install nodejs s ...
- 简单翻译和补充:1. GNU ARM Eclipse
原文链接: GNU ARM Eclipse GNU 介绍: GNU 计划,又称革奴计划,是由RichardStallman在1983年9月27日公开发起的.它的目标是创建一套完全自由的操作系统.Ric ...
- How to install java and eclipse on linux
First of all, download from the website of java. I download 'jdk-8u102-linux-i586.tar.gz' unzip it t ...
- Install WindowBuilder for Eclipse
WindowBuilder官方下载安装说明地址:http://www.eclipse.org/windowbuilder/download.php 先祝各位能顺利安装上!以下是基于Eclipse in ...
- 【335】Install PyDev in Eclipse IDE
Reference: Eclipse和PyDev搭建完美Python开发环境(Windows篇) Reference: Install the PyDev plug-in for Eclipse Do ...
- Install NDK in Eclipse/Android Studio
1. Download NDK https://developer.android.com/tools/sdk/ndk/index.html 2.Install NDK $ tar xvf andro ...
- [Training Video - 2] [Java Introduction] [Install Java and Eclipse, Create Class]
Download Java : https://java.com/en/download/ Download Eclipse : https://www.eclipse.org/downloads/ ...
- Tutorial: Create a Blinky ARM test project(创建一个闪灯的arm测试项目)
Background ref : Tutorial: Create a Blinky ARM test project If you are new to ARM development, it is ...
- 在ubuntu下设置eclipse开发STM32等嵌入式设备
之前为了能够让ROS与底层能够顺利通讯,我采用可开源开发板arduino ,因为arduino有ROS的库,能够按照ROS wiki上所给的教程就可以顺利的开发,但由于arduino的局限性,我觉得是 ...
- 嵌入式开发 centos7 交叉编译环境准备
1. 安装centos7,启动图像化界面. 参考:https://blog.csdn.net/qq_23014435/article/details/74347925 # systemctl get- ...
随机推荐
- 15、数据库加固-redis 加固
1.禁止网络访问 Redis 服务 更改配置文件,使服务监听本地回环地址 修改 redis 配置文件:vi 安装路径/redis.conf 确保:bind 127.0.0.1(::1:表示 ipv6 ...
- ios系统的css兼容问题处理和iOS上网页滑动不流畅问题
1.H5网页touch滑动的时候在苹果手机上出现不流畅的问题 -webkit-overflow-scrolling 用来控制元素在移动设备上是否使用滚动回弹效果. 解决办法:给所有网页添加如下样式 b ...
- 零知识证明: Tornado Cash 项目学习
前言 最近在了解零知识证明方面的内容,这方面的内容确实不好入门也不好掌握,在了解了一些基础的概念以后,决定选择一个应用了零知识证明的项目来进行进一步的学习.最终选择了 Tornado Cash 这个项 ...
- grads读取netcdf文件,报错SDF file has no discernable X coordinate解决办法
1.netcdf文件格式说明 netCDF数据格式在气象中有广泛的应用,这种格式有一定的复杂性.作为数据的使用者可以不用对数据格式了解得很详细,不过大致的了解还是有必要的.netCDF是自描述的二进制 ...
- Django 安全性与防御性编程:如何保护 Django Web 应用
title: Django 安全性与防御性编程:如何保护 Django Web 应用 date: 2024/5/13 20:26:58 updated: 2024/5/13 20:26:58 cate ...
- HC32L110(六) AS06-VTB07H V5.0测试板AT指令固件
目录 HC32L110(一) HC32L110芯片介绍和Win10下的烧录 HC32L110(二) HC32L110在Ubuntu下的烧录 HC32L110(三) HC32L110的GCC工具链和VS ...
- 一个 .NET 开源的地图组件库 - Mapsui
前言 今天大姚给大家分享一个.NET开源(MIT License).免费.同时支持多平台框架(MAUI.WPF.Avalonia.Uno.Blazor.WinUI.Eto..NET Android 和 ...
- ceph deploy部署ceph集群 ceph扩容 rbd存储
架构拓扑 节点主机 节点IP 节点角色 OS ceph-admin 10.0.0.60 admin deploy mds centos7 ceph-node1 10.0.0.61 mon osd md ...
- itest(爱测试) 开源接口测试,敏捷测试管理平台10.1.0发布
一:itest work 简介 itest work 开源敏捷测试管理,包含极简的任务管理,测试管理,缺陷管理,测试环境管理,接口测试,接口Mock,还有压测 ,又有丰富的统计分析,8合1工作站.可按 ...
- Easysearch压缩模式深度比较:ZSTD+source_reuse的优势分析
引言 在使用 Easysearch 时,如何在存储和查询性能之间找到平衡是一个常见的挑战.Easysearch 具备多种压缩模式,各有千秋.本文将重点探讨一种特别的压缩模式:zstd + source ...