Datasheet

6. Confirm the Image Switch ( newtmgr image confirm )
The final step is to 'confirm' the image update process to make it permanent, which is done via the image confirm
sub-command:
If you check the flags values again, you will see that version 0.2.0 is now 'confirmed' and will continue to execute every
time you reset the device:
$ newtmgr -c serial1 image list
Images:
slot=0
version: 0.2.0
bootable: true
flags: active
hash: 87276847693699896f68b3c26d378648cace2900db4145cd5ade6049ac5ec15a
slot=1
version: 0.1.0
bootable: true
flags: confirmed
hash: be52a255c25546dacc497d62faea910459903a1c1916ce831697d40fc2c20689
Split status: N/A (0)
$ newtmgr -c serial1 image confirm
As of newtmgr 1.1.0 the 'confirm' command will always return "Error: 1", but the confirm process does work, as
verified with the image list command below!
$ newtmgr -c serial1 image list
Images:
slot=0
version: 0.2.0
bootable: true
flags: active confirmed
hash: 87276847693699896f68b3c26d378648cace2900db4145cd5ade6049ac5ec15a
slot=1
version: 0.1.0
bootable: true
flags:
hash: be52a255c25546dacc497d62faea910459903a1c1916ce831697d40fc2c20689
Split status: N/A (0)
If you reset without confirming, the device will revert to the original (0.1.0) image!
Note: You can optionally skip the 'test + reset' phase, and go directly to confirming an image after the upload
is finished by using 'newtmgr -c serial1 confirm [hash]' with the hash of the image to finalize. This is a more
dangerous choice, but the option is there if you wish to save some time.
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 42 of 87