Datasheet

Common newtmgr Commands
The following commands are commonly used when doing day to day development and debugging with Mynewt based
devices:
Display Scheduler Task Activity via 'taskstat'
You can also test the connection with newtmgr using the taskstat command, which will list some basic statistics
about the tasks running in the task manager.
Enter the following command:
Which should give you the following task statistics (output will vary depending on the Mynewt application that is
running at the time):
Uploading Application Images with newtmgr
If you don't have a Segger J-Link or similar debugger, the newtmgr tool can be used to upload an application image
to the secondary bank of flash memory, and then switch application images during the next reset. This allows you to
perform field updates over an inexpensive serial connection with no external HW required.
1. Build the Target Application ( newt build )
The first step is of course to build the target application that you wish to deploy. The default
bleuart (https://adafru.it/yAh) project is used in this case:
$ newtmgr -c serial1 image list
Images:
slot=0
version: 0.1.0
bootable: true
flags: active confirmed
hash: be52a255c25546dacc497d62faea910459903a1c1916ce831697d40fc2c20689
Split status: N/A (0)
The image shown above is the default image that the nRF52 Pro ships with
$ newtmgr -c serial1 taskstat
task pri tid runtime csw stksz stkuse last_checkin next_checkin
ble_ll 0 2 21 4381 80 58 0 0
bleuart 5 3 0 12030 256 31 0 0
idle 255 0 11980 16292 64 26 0 0
main 127 1 0 27 1024 210 0 0
$ newt build bleuart
Building target targets/bleuart
...
Target successfully built: targets/bleuart
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 39 of 87