PlatformIO for CLion¶. The CLion is a cross-platform C/C IDE for Linux, OS X, and Windows. CLion includes such features as a smart editor, code generation, code quality assurance, automated refactorings, on-the-fly code analysis, project manager, integrated version control systems and debugger. この記事ではMicrobot Push2を制御するにためにBLEのインタフェースについて調べた内容についてまとめました。.
- Dec 19, 2019.
- Installing and setting up Python 3 as default¶. Basing on macOS Catalina 10.15 release notes, use of Python 2.7 is not recommended and Python will not be included by default in future versions of macOS.Check what Python you currently have.
- Super-Quick (Mac / Linux) Local Download (Mac / Linux / Windows). macOS Homebrew. Full Guide. Development Version Troubleshooting. System requirements. Operating System Windows, macOS, Linux, FreeBSD, Linux ARMv6+ Python Interpreter Python 2.7 is required. PlatformIO does not support Python 3.
- ARDUINO USB 2 Serial converter as a programmer for STM32F103C8T6 on a Mac Dear everybody, I am trying to program through ARDUINO IDE 1.8.12 a STM32F103C8T6 using the ARDUINO USB to serial convert on a MacBook pro, but I am not having success.
- Overview Note: the preferred setup is FRDM-K64F KDS (Kinetis Design Studio), rather than the homebrew setup described below. This page describes setup of setting up an improvised FRDM-K64F Eclipse/Platformio setup. The following instructions are particularly targeted to PC systems, and may need to be adjusted for other machines/platforms.
|
Deprecation notice
In mid-2019, the ARM toolchain binaries were moved from the GNU MCU Eclipseproject to the xPack project. The new install page is:
All previous releases are still available in the @gnu-mcu-eclipse
scope,but were deprecated and are not recommended for new projects.
Easy install
For ARM, the recommended method to install the latest version of the toolchain is:
Overview
The GNU MCU Eclipse ARM build plug-in is highly configurable in terms of executable names and location, so you can use any 32/64-bit ARM GNU toolchain you prefer, but, for better results, the recommended toolchains for bare metal target applications are GNU MCU Eclipse ARM Embedded GCC andGNU ARM Embedded Toolchain (formerly GNU Tools for ARM Embedded Processors); for GNU/Linux target applications, the Linaro toolchains provide a large selection of choices, for various specific needs (little/big endian, 32/64-bit, etc).
Important notes: GDB 7.12, distributed with GCC 6.x, requires Neon.3 or higher, otherwise the suspend and terminate buttons in the debug perspective are not functional. arm-none-eabi-gdb
7.12 from the initial 6_2-2016q4-20161216
crashes on macOS; use 6-2017-q1-update
or later.
Target vs host platform
Please note the distinction between the target platform and the host/development platform.
- the target platform defines the environment where the application will be executed, and in general can be either a bare metal (the application sits directly on the hardware and has intimate control of it), and applications that sit on top of an operating system, usually a distribution of GNU/Linux optimised for embedded environments
- the host/development platform is the platform where the development tools are executed, usually as cross compilers, and can be, in our case, any platform that supports Eclipse, for example Windows, macOS, GNU/Linux, etc.
Note: Be sure you select the proper toolchain for the target platform, otherwise builds will not succeed, or the generated applications will fail to run. Do not try to use the GNU ARM Embedded to build GNU/Linux applications, because the executables will not run on anything than bare metal, and do not try to use the Linaro toolchains for bare metal applications.
The installation details described below assume the selection of the GCC ARM Embedded toolchain. For other toolchains, please follow the specific installation instructions.
GNU MCU Eclipse ARM Embedded GCC
GNU MCU Eclipse ARM Embedded GCC is a new GCC toolchain distribution for ARM devices, that complements the official GNU Arm Embedded Toolchain distribution, by ARM.
The main benefits for the users are:
Download Gcc-arm-none-eabi
- convenience: binaries for all major platforms are provided (Windows 64/32-bit, GNU/Linux 64/32-bit, macOS);
- uniform and portable install: the toolchain is also available as a binary xPack, and can be easily installed with
xpm
; - improved support for Continuous Integration usage: as for any xPack, the toolchain can be easily used in test environments.
Note: to benefit of the new toolchain advantages, it is recommended that old projects, which were configured to use the GNU ARM Embedded Toolchain, to be reconfigured to use GNU MCU Eclipse ARM Embedded GCC.
The xPack install
This method uses the portable tool xpm, the xPack Package Manager, and can be used on Windows, macOS and GNU/Linux.
This will always install the latest available version, in the central xPacks repository, which is a platform dependent folder in the user home:
- Windows:
%APPDATA%xPacks
(or%userprofile%AppDataRoamingxPacks
, likeC:UsersilgAppDataRoamingxPacks
) - macOS:
${HOME}/Library/xPacks
- GNU/Linux:
${HOME}/opt/xPacks
This location is also known by Eclipse, so it can automatically identify the installed toolchains.
Note: This location is configurable using the environment variable XPACKS_REPO_FOLDER
; for more details please check the xpm folders page.
The actual binaries are extracted from the distribution archive in a folder named .content
, located in the versioned xPack folder. On someplatforms, dotted files are hidden by default, so the file explorer mightrequire additional settings to make them visible.
Windows antivirus warning: aggressive antiviruses may prevent xpm to install binary xPacks; see FAQ.
Manual install
For all platforms, the GNU MCU Eclipse ARM Embedded GCC toolchain is released as a portable archive that can be installed in any location.
The archives can be downloaded from GitHub Releases.
Note: For manual installs, the recommended install location is different fromthe xPack install folder.
Windows
The Windows versions of GNU MCU Eclipse ARM Embedded GCC are packed as .zip files. Download the latest version named like:
gnu-mcu-eclipse-arm-none-eabi-gcc-7.2.1-1.1-20180401-0515-win64.zip
gnu-mcu-eclipse-arm-none-eabi-gcc-7.2.1-1.1-20180401-0515-win32.zip
Select the -win64
file for Windows x64 machines and the -win32
file for Windows x32 machines.
Unpack the archive and copy it into the %userprofile%AppDataRoamingGNU MCU Eclipse
(for example C:UsersilgAppDataRoamingGNU MCU Eclipse
) folder; according to Microsoft, this is the recommended location for installing user specific packages;
Note: although perfectly possible to install the toolchain in any folder, it is highly recommended to use this path, since the GNU MCU Eclipse plug-ins can automatically identify the toolchain if installed in this location.
For Windows, the next step would be to install the build tools (make & rm).
macOS
The macOS version of GNU MCU Eclipse ARM Embedded GCC is packed as a .tgz archive. Download the latest version named like:
gnu-mcu-eclipse-arm-none-eabi-gcc-7.2.1-1.1-20180401-0515-osx.tgz
To install the toolchain, unpack the archive and copy it to /${HOME}/opt/gnu-mcu-eclipse/arm-none-eabi-gcc/
:
Note: although perfectly possible to install the toolchain in any folder, it is highly recommended to use this path, since the GNU MCU Eclipse plug-ins can automatically identify the toolchain if installed in this location.
Test if the compiler is functional; use the actual install path:
GNU/Linux
The GNU/Linux versions of GNU MCU Eclipse ARM Embedded GCC are packed as .tgz archives. Download the latest version named like:
gnu-mcu-eclipse-arm-none-eabi-gcc-7.2.1-1.1-20180401-0515-centos64.tgz
gnu-mcu-eclipse-arm-none-eabi-gcc-7.2.1-1.1-20180401-0515-centos32.tgz
As the name implies, the binaries were created on CentOS, but can be executed on most recent GNU/Linux distributions. Select the -centos64
file for 64-bit machines and the -centos32
file for 32-bit machines.
To install the toolchain, unpack the archive and copy it to /${HOME}/opt/gnu-mcu-eclipse/arm-none-eabi-gcc/
:
Note: although perfectly possible to install the toolchain in any folder, it is highly recommended to use this path, since the GNU MCU Eclipse plug-ins can automatically identify the toolchain if installed in this location.
Test if the compiler is functional; use the actual install path:
GNU ARM Embedded Toolchain
Download
The toolchain can also be downloaded from GNU ARM Embedded Toolchain.
Versions from 4_7
up to 8-2018-q4-major
were tested and are known to work properly.
Windows
For Windows, the GNU ARM Embedded Toolchain is released in two versions:
- a portable archive that can be installed in any location
- a Windows setup that can install the binaries in the standard system location
Our preferred method is to install the binaries in the user home folder, but your mileage may vary.
Portable archive
To install the archive, the steps are:
- download the latest
gcc-arm-none-eabi-8-2018-q4-major-*-win*.zip
file - open the archive in the file explorer
- extract the
gcc-arm-none-eabi-8-2018-q4-major
folder in%userprofile%AppDataRoamingGNU Tools ARM Embedded
According to Microsoft, this is the recommended location for installing user specific packages, and the GNU MCU Eclipse plug-ins can automatically identify the toolchain if installed in this location.
- read the
readme.txt
file - test if the compiler is functional; use the actual install path:
The complete toolchain documentation is available in the ...sharedocpdf
folder.
For Windows, the next step would be to install the build tools (make & rm).
If you insist on using the setup version, be sure you DO NOT add the toolchain path to the user or system path!
macOS
For macOS, the GNU ARM Embedded Toolchain is released as a portable archive, that can be installed in any location.
- download the latest macOS install tarball file from ARMDeveloper (currently
gcc-arm-none-eabi-8-2018-q4-major-mac.tar.bz2
, about 99 MB) - locate the file (usually in the
${HOME}/Downloads
folder) decide on a location to install the toolchain; the recommended folder is
${HOME}/opt/
Note: It is highly recommended to use this path, since the GNU MCU Eclipse plug-ins can automatically identify the toolchain if installed in this location.
In addition, the GNU MCU Eclipse plug-ins also check the following locations:
- unpack the archive in the destination folder
the result should be a folder like
${HOME}/opt/gcc-arm-none-eabi-8-2018-q4-major
test if the compiler is functional; use the actual install path:
DO NOT add the toolchain path to the user or system path!
The complete toolchain documentation is available in the .../share/doc/pdf/
folder.
If you’ll ever need to remove the toolchain, only remove the ${HOME}/opt/gcc-arm-none-eabi-8-2018-q4-major
, there are no other components stored in any system folders.
MacPorts
In case you have MacPorts installed, be sure you remove the MacPorts path from the user path (edit the .profile in your home folder and comment out the line where /opt/local/
is added in front of the PATH), especially if you installed any toolchain inside MacPorts, since this will be a serious source of confusion.
Homebrew
In case you have Homebrew installed in the system location, be sure you donot have another version of the toolchain installed there, sincethis will be a serious source of confusion.
GNU/Linux
For GNU/Linux, the GNU ARM Embedded Toolchain is released as a portable archive, that can be installed in any location.
The following steps were performed on Ubuntu 14.04 LTSx64 (please adjust them accordingly for other distributions):
starting with version 6.x, GNU/Linux toolchains are 64-bit applications, and should work directly on most modern distributions;
in older versions, the toolchain executables are 32-bit apps; when running on 64-bit machines, be sure you install the following 32-bit libraries (for different versions check the toolchain README for the actual list):
on Ubuntu 15.04 the following libraries are required:
on Ubuntu 12 LTSx64 all 32-bit libraries were packed in ia32-libs, so you can also use, but be prepared to get a lot of useless libraries:
download the latest Linux install tarball file from ARMDeveloper (currently
gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2
, more than 100 MB)Note: DO NOT install the ARM GCC package that comes with your distribution, especially if it is newer than the one provided by Launchpad, since generally it is not supported, and debugging sessions might fail.
- locate the file (usually in the
${HOME}/Downloads/
folder) - decide on a location to install the toolchain; the recommended folder is
${HOME}/opt/
unpack the archive in the destination folder
Note: It is highly recommended to do not change the install path, since the plug-in tries to automatically discover the toolchain by searching only a limited set of possible locations (
${HOME}/local
,${HOME}/opt
,/usr/local
).- the result should be a folder like
${HOME}/opt/gcc-arm-none-eabi-8-2018-q4-major
test if the compiler is functional; use the actual install path:
DO NOT add the toolchain path to the user or system path!
The complete toolchain documentation is available in the .../share/doc/pdf/
folder.
If you’ll ever need to remove the toolchain, only remove the ${HOME}/opt/gcc-arm-none-8-2018-q4-major
, there are no other components stored in any system folders.
Toolchain path
To be sure you did not miss this recommendation, here it is again:
DO NOT add the toolchain path to the user or system path!
If there would be only one single version of one single toolchain in existence, then it wouldn’t be a problem, but as soon as you start real world applications, you will face at least the need to keep multiple versions of the same toolchain installed, if not multiple toolchains, and this is when your trouble starts.
The GNU MCU Eclipse plug-in has an advanced toolchain path management (presented in more detail in the separate page). Use it!
Select the xPack version
The recommended method for selecting the toolchain path is via the xPack… button, and selecting the xPack version.
Note: this button is enabled only for the GNU MCU Eclipse ARM Embedded GCC toolchain; if you are certain that the xPack was installed, but the button is disabled, check for the toolchain name, you might have selected the old GNU ARM Embedded Toolchain, which has no xPack available.
Uninstall
Should you ever need to remove the toolchain, only remove the xPack folder, there are no other components stored in any system folders.
If installed manually, remove the arm-none-eabi-gcc/7.2.1-1.1-20180401-0515
folder.
Documentation
How To Download Gccarmnoneeabi Mac Pro
The GNU MCU Eclipse ARM Embedded GCC distribution includes the standard documentation, in info, man and pdf format.
The documentation is located in the share/doc
folder, for example the pdf files are:
GDB 7.12
GDB 7.12 distributed with the initial GCC 6.2 (gcc-arm-none-eabi-6_2-2016q4-20161216
) has several issues (crashes on macOS and is incompatible with Neon.2).
The recommendation is to use the update version gcc-arm-none-eabi-6-2017-q1-update
, or later (the current version is 8.x).
Last modified on Mon Sep 30 22:08:09 2019 UTC.
As part of its ongoing commitment to maintaining and enhancing GCC compiler support for the Arm architecture, Arm is maintaining a GNU toolchain with a GCC source branch targeted at embedded Arm processors, namely Cortex-R/Cortex-M processor families, covering Cortex-M0, Cortex-M3, Cortex-M4, Cortex-M0+, Cortex-M7, Armv8-M Baseline and Mainline, Cortex-R4, Cortex-R5, Cortex-R7 and Cortex-R8. As part of this, Arm releases at regular intervals pre-built and tested binaries from the Arm embedded branch. The improvements are freely available for integration into 3rd party toolchains, and for direct download by end-users.
Arm employees are maintaining this project. Contributions to this project are be done via GCC [1] trunk, binutils-gdb [2] master branch and newlib [3] master branch. This launchpad project is for communication and bug reporting. Downloads are made from developer.arm.com website [4] and no code change is done in Launchpad project.
[1] http://gcc.gnu.org
[2] http://www.gnu.org/software/binutils/
[3] https://sourceware.org/newlib/
[4] https://developer.arm.com/open-source/gnu-toolchain/gnu-rm
For Ubuntu 12.04/14.04/16.04/16.10 32/64-bit user, PPA is available at https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa.
Questions can be asked on the Arm connected community website at https://community.arm.com/groups/tools
Bugs should be reported in the bug section (https://bugs.launchpad.net/gcc-arm-embedded/+filebug).