Datasheet

different firmware releases when debugging.
It relies on AdaLink or OpenOCD beneath the surface (see above), but you can use this
command line tool to flash your nRF51822 with a specific SoftDevice, Bootloader and
Bluefruit firmware combination.
It currently supports using either a Segger J-Link or STLink/V2 via AdaLink, or GPIO on a
Raspberry Pi if you don't have access to a traditional ARM SWD debugger. (A pre-built
version of OpenOCD for the RPi is included in the repo since building it from scratch takes a
long time on the original RPi.)
We don't provide active support for this tool since it's purely an internal project, but made it
public just in case it might help an adventurous customer debrick a board on their own.
$ python flash.py --jtag=jlink --board=blefriend32 --softdevice=8.0.0 --bootloader
jtag : jlink
softdevice : 8.0.0
bootloader : 2
board : blefriend32
firmware : 0.6.7
Writing Softdevice + DFU bootloader + Application to flash memory
adalink -v nrf51822 --programmer jlink --wipe --program-hex "Adafruit_BluefruitLE_Firmware/softdevice/s110_nrf51_8.0.0_softdevice.hex"
...
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 216 of 238