Datasheet

What the test command will do is check the signature of the image, and then try to switch the two flash banks so that
the old application (0.1.0) is in the secondary flash bank, and the new application (0.2.0) is in the primary bank.
This happens at reset, and will cause a 15-20 second delay as the flash writes are happening, so be sure to wait for
the testing process to complete before interacting or interferring with the device!
You can issue a test (and flash bank switch) request as follows, using the hash value from the image list command
above:
5. Reset to Perform the Test and Image Bank Switch ( newtmgr reset )
For the flash bank switch and test procedure to complete, you must reset the device, which can be done from the
command line as follows:
If you run the image list command again you will see that the banks and flags values have changed, with version 0.1.0
in the secondary bank and it's status set to 'confirmed':
$ newtmgr -c serial1 image test 87276847693699896f68b3c26d378648cace2900db4145cd5ade6049ac5ec15a
Images:
slot=0
version: 0.1.0
bootable: true
flags: active confirmed
hash: be52a255c25546dacc497d62faea910459903a1c1916ce831697d40fc2c20689
slot=1
version: 0.2.0
bootable: true
flags: pending
hash: 87276847693699896f68b3c26d378648cace2900db4145cd5ade6049ac5ec15a
Split status: N/A (0)
Notice that the 0.2.0 image flag has been changed to PENDING, which means a test and flash bank switch is
pending on the next reset!
$ newtmgr -c serial1 reset
Done
Be sure to wait at least 20 seconds after issuing the reset command, since the flash write takes 15-20
seconds to complete and the device will appear unresponsive during the update process!
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 41 of 87