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 |
Erase all flash on the target device via the nrfjprog tool. |
nrfjprog_flash |
Load a file onto the target device via the nrfjprog tool. |
nrfjprog_eraseall(family)
Erase all flash on 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, skip_if_cached=True)
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 |
skip_if_cached
|
bool
|
If True, skip flashing when the binary is unchanged (default True) |
True
|
Returns:
| Type | Description |
|---|---|
int
|
Status of operation (0 for success, other for error. See nrfprog documentation for further details). |