Programming a device with a SEGGER J-Link OB Debugger

nRF Util

tags
nRF Util

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.

Note

This is a method valid for devices locally connected to your computer through the J-Link USB port.

For information about programming devices over the network using remote J-Link probes, see Programming a device with a SEGGER J-Link OB Debugger over the network.

You can use the following procedure to program new firmware to the board:

  1. Find the serial number of the J-Link device connected to the system by running the following command:

    nrfutil device list --traits jlink
    

    This serial number of the J-Link device will be referenced as <serial_number> in the next steps.

  2. Delete old firmware on the board by running the following command:

    nrfutil device erase --serial-number <serial_number>
    

    For more information about the erase subcommand, see Erasing the device.

  3. Program the new firmware to the board by running the following command with the correct /path/:

    nrfutil device program --serial-number <serial_number> --firmware /path/fw.hex
    
  4. Reset the device by running the following command:

    nrfutil device reset --serial-number <serial_number>