Datasheet
2. Sign and Version the Image ( newt create-image )
You then need to 'sign' the image you just built with a version number and meta data used to validate the image when
flashing, which is done via the create-image command:
3. Upload the Image ( newtmgr image upload )
Now that we have a signed and versioned firmware image, we can copy the image to bank 1 of flash memory using the
serial bootloader and the newtmgr tool:
At this point, you can see that there are two images stored on the device in two different flash banks, the original 0.1.0
image that the board ships with, and the new 0.2.0 image we just built, signed and uploaded:
4. Test the Image Upload ( newtmgr image test [hash] )
Now that the image has been uploaded successfully to the secondary bank of flash memory, we need to tell the
system to 'test' the image during the next reset.
$ newt create-image bleuart 0.2.0
App image succesfully generated: [PATH]/bin/targets/bleuart/app/apps/bleuart/bleuart.img
Pay attention to the .img output filename since you will need this full path in the next step!
$ newtmgr -c serial1 image upload [PATH]/bin/targets/bleuart/app/apps/bleuart/bleuart.img
353
704
...
157426
157612
Done
$ newtmgr -c serial1 image list
Images:
slot=0
version: 0.1.0
bootable: true
flags: active confirmed
hash: be52a255c25546dacc497d62faea910459903a1c1916ce831697d40fc2c20689
slot=1
version: 0.2.0
bootable: true
flags:
hash: 87276847693699896f68b3c26d378648cace2900db4145cd5ade6049ac5ec15a
Split status: N/A (0)
Pay attention to the 'flags' field, which indicates the state of images on the system. This value will change as
we run through the update process.
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 40 of 87










