Datasheet
Native Installation (Linux)
Mynewt relies on two command line utilities ( newt and newtmgr ), both of which are described elsewhere in this
learning guide, as well as the presence of an ARM cross-compiling toolchain ( arm-none-eabi-gcc , etc.).
Both of these need to be installed and available on your system to work with Mynewt projects.
Install newt and newtmgr Binaries
Binary versions of the command-line tools are available from Apache.
The full setup guide is available
here: https://mynewt.apache.org/latest/newt/install/newt_linux.html (https://adafru.it/Erq)
In summary, copy following commands and paste it (one line each time) into your terminal to add newt's public key and
deb package to your apt repository for installation.
Check your installation with version command
Install an ARM Cross-Compiling Toolchain
In order to build and debug ARM binaries, you will also need to install a cross-compiling toolchain targeting the ARM
architecture.
Thankfully, pre-built binaries are available, as described in the setup guide below:
Optional: Install the OpenOCD Debugger (Segger J-Link)
If you wish to debug or flash your projects with a Segger J-Link, you will also need to install the OpenOCD debug tool
via the following steps:
$ wget -qO - https://raw.githubusercontent.com/JuulLabs-OSS/debian-mynewt/master/mynewt.gpg.key | sudo apt-key add -
$ sudo tee /etc/apt/sources.list.d/mynewt.list <<EOF
deb https://raw.githubusercontent.com/JuulLabs-OSS/debian-mynewt/master latest main
EOF
$ sudo apt-get update
$ sudo apt-get install newt
$ sudo apt-get install newtmgr
$ newt version
Apache Newt version: 1.5.0
$ newtmgr version
Apache Newtmgr 1.5.0
$ sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
$ sudo apt-get update
$ sudo apt-get install gcc-arm-none-eabi
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 28 of 87










