Skip to content

nrfjprog Interface

The nrfjprog Interface is used to program and control Nordic Semiconductor SoCs through SEGGER J-LINK programmers and debuggers.

Functions:

Name Description
nrfjprog_eraseall

Load a file onto the target device via the nrfjprog tool.

nrfjprog_flash

Load a file onto the target device via the nrfjprog tool.

nrfjprog_eraseall(family)

Load a file onto the target device via the nrfjprog tool.

Parameters:

Name Type Description Default
family str

Device family (eg, "NRF53")

required

Returns:

Type Description
int

Status of operation (0 for success, other for error. See nrfprog documentation for further details).

nrfjprog_flash(binary, family)

Load a file onto the target device via the nrfjprog tool.

Parameters:

Name Type Description Default
binary str

Path of the file to be loaded. For nRF53 devices, this should be a merged hex file

required
family str

Device family (eg, "NRF53")

required

Returns:

Type Description
int

Status of operation (0 for success, other for error. See nrfprog documentation for further details).