Nordic Semiconductor DKs contain SEGGER J-Link Onboard (OB)
debuggers and are listed with the jlink
device trait when connected to the
computer through the J-Link USB port.
You can use the following procedure to progam new firmware to the board:
-
Find the serial number of the J-Link device connected to the system, by running:
nrfutil device list --traits jlink
-
Delete old firmware on the board, by running the following:
nrfutil device erase --serial-number xxxxxxxxx
-
Program the new firmware to the board, by running:
nrfutil device program --serial-number xxxxxxxxx --firmware /path/fw.hex
-
Reset the device, by running:
nrfutil device reset --serial-number xxxxxxxxx
Alternatively, you can use the
--options
flag to combine the previous steps, as follows:
nrfutil device program --serial-number xxxxxxxxx --firmware /path/fw.hex --options chip_erase_mode=ERASE_ALL,reset=RESET_SYSTEM