Datasheet

newt
newt is a build and project management tool that hides most of the messy details of creating, building and debugging
mynewt projects. With newt, you don't need to worry about makefiles, compiler flags, debug config settings, and library
versions or updates. The details are elegantly hidden behind the easy to use 'newt' wrapper.
For full details on newt and the entire command set see the official newt documentation (https://adafru.it/Ers).
Installing newt
For details on installing the newt tool on your operating system of choice see:
OS X Installation: https://mynewt.apache.org/latest/newt/install/newt_mac.html (https://adafru.it/Ert)
Linux Installation: https://mynewt.apache.org/latest/newt/install/newt_linux.html (https://adafru.it/Erq)
Windows Installation: https://mynewt.apache.org/latest/newt/install/newt_windows.html (https://adafru.it/Erm)
Common newt Commands
Please consult the official newt documentation (https://adafru.it/Eru) for details on every command, but the most
commonly used commands are detailed below:
newt build
This command will build a firmware image for the specified target name, and will handle things like the makefile
generation and any compiler parameters and file inclusions required by the target.
Full documentation: https://mynewt.apache.org/latest/newt/command_list/newt_build.html (https://adafru.it/ErA)
newt create-image
This command assigns a version number to the image, and can also be used to optionally cryptographically sign
images with an appropriate .pem key file.
Full
documentation: https://mynewt.apache.org/latest/newt/command_list/newt_create_image.html (https://adafru.it/ErB)
newt load <target_name>
This command will use a Segger J-Link (if you have one connected) to flash the version controlled .img file to the
device.
$ newt build first
Building target targets/first
...
Target successfully built: targets/first
$ newt create-image first 1.2.3
App image succesfully generated: [PATH]/bin/targets/first/app/apps/first/first.img
Make sure you run 'newt create-image' on the firmware image before loading it to the device, or the firmware
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 35 of 87