To program Nordic Semiconductor SoCs through SEGGER J-Link programmers and debuggers, use the nrfjprog executable.
Note: The nrfjprog executable has been archived
and replaced by nRF Util.
No further updates will be made to nrfjprog. Last supported operating systems
are Windows 10, Linux Ubuntu 22.04, and macOS 13. The executable will remain
available for download as part of the nRF Command Line Tools, but do not install
the SEGGER J-Link version they provide if you have a newer version installed.
Important: This version of the
nrfjprog executable has been developed and tested for the
bundled SEGGER software. It will most likely work with other versions of the SEGGER
software, but keep in mind that there could be major changes that break the
compatibility.
See nrfjprog commands for an overview of
all available nrfjprog commands, and nrfjprog return codes for a list
of possible return codes.To set up a standard configuration for using the nrfjprog utility, use the initialization file config.toml (as listed in the nRF Command Line Tools file structure). Open the config.toml file to check the available parameters.
The following example shows how to use nrfjprog to erase all
available user flash (including UICR) and program the file file.hex
to an nRF52
SoC:
nrfjprog -f NRF52 --program file.hex --chiperase --verify