nrfjprog returns the exit code 0 if the requested operation was completed successfully. Otherwise, an error code is returned.
| Exit code | Definition | Description |
|---|---|---|
| 0 | Success | Requested operation (operations) were successfully completed. |
| 1 | NrfjprogError | An error condition that should not occur has happened. |
| 2 | NrfjprogOutdatedError | nrfjprog version is too old for the device. |
| 3 | MemoryAllocationError | Memory allocation for nrfjprog failed. |
| 11 | InvalidArgumentError | Invalid arguments passed to the application. |
| 12 | InsufficientArgumentsError | Needed arguments not passed to the application. |
| 13 | IncompatibleArgumentsError | Incompatible arguments passed to the application. |
| 14 | DuplicatedArgumentsError | The same argument has been passed twice. |
| 15 | NoOperationError | The arguments passed do not perform a valid operation. |
| 16 | UnavailableOperationBecauseProtectionError | The operation attempted cannot be performed because either the main-ap or the ctrl-ap is not available. |
| 17 | UnavailableOperationInFamilyError | The operation attempted cannot be performed in the device because the feature is lacking in the device family. |
| 18 | WrongFamilyForDeviceError | The --family option given with the command (or the default
from nrfjprog.ini) does not match the device connected. |
| 19 | UnavailableOperationBecauseMpuConfiguration | For nRF51, --eraseuicr is unavailable unless the device came
with an ANT SoftDevice programmed at the Nordic Semicondutor factory. |
| 20 | NrfjprogDllNotFoundError | Unable to find nrfjprog.dll in the installation folder. Reinstall nrfjprog. |
| 21 | NrfjprogDllLoadFailedError | Failed to load nrfjprog.dll. |
| 22 | NrfjprogDllFunctionLoadFailedError | Failed to load the functions from nrfjprog.dll. |
| 23 | NrfjprogDllNotImplementedError | DLL does not implement this function for your device. |
| 24 | NrfjprogIniSyntaxError | Syntax error in nrfjprog.ini file. |
| 25 | NrfjprogIniNotFoundError | Unable to find nrfjprog.ini in the installation folder. Reinstall nrfjprog. |
| 26 | NrfjprogIniCannotBeOpenedError | Opening the nrfjprog.ini file for reading failed. |
| 27 | NrfjprogIniFamilyMissingError | Family parameter cannot be parsed from INI file. Line might be deleted or invalid format. |
| 28 | NrfjprogIniClockspeedMissingError | Clock speed parameter cannot be parsed from INI file. Line might be deleted or invalid format. |
| 29 | NrfjprogWorkerExeNotFoundError | The DLL could not find the required worker executable. |
| 30 | JLinkARMDllNotFoundError | Unable to find install path for J-Link software. |
| 31 | JLinkARMDllInvalidError | DLL found does not seem a valid DLL. |
| 32 | JLinkARMDllFailedToOpenError | DLL could not be opened. |
| 33 | JLinkARMDllError | DLL reported error. |
| 34 | JLinkARMDllTooOldError | DLL is too old for functionality. Install a newer version of JLinkARM.dll. |
| 35 | JLinkARMDllTimeOutError | Host-to-J-Link communication timed out. |
| 37 | UnavailableOperationBecauseTrustZone | The address area attempted to be accessed is unavailable because of the TrustZone setup. |
| 38 | UnavailableOperationBecauseBPROT | The address area attempted to be accessed is unavailable because of the memory block protection setup (MPU, BPROT, ACL, or SPU). |
| 39 | NrfjprogIniPropertyMissingError | A required property is missing from the selected configuration file. |
| 40 | InvalidSerialNumberError | Serial number provided is not among those connected. |
| 41 | NoDebuggersError | There are no debuggers connected to the PC. |
| 42 | NotPossibleToConnectError | Not possible to connect to the device. |
| 43 | LowVoltageError | Low voltage detected at target device. |
| 51 | FileNotFoundError | Unable to find the given file. |
| 52 | InvalidHexFileError | File specified does not seem a valid HEX file. |
| 53 | FicrReadError | FICR read failed. |
| 54 | WrongArgumentError | One of the arguments is wrong. Path does not exist, memory access is not aligned. |
| 55 | VerifyError | The write verify operation failed. |
| 56 | NoWritePermissionError | Unable to create file in the current working directory. |
| 57 | NVMCOperationError | The flash operation in the device failed. |
| 58 | FlashNotErasedError | A program operation failed because the area to write was not erased. |
| 59 | RamIsOffError | The RAM area to read or write is unpowered. |
| 60 | NoReadPermissionError | Unable to open file for read. |
| 61 | NoExternalMemoryConfiguredError | A QSPI operation is attempted without an external memory configured. |
| 62 | RecoverFailed | --recover operation failed for an unknown reason. Check if
the proper family has been provided. |
| 63 | InternalError | An unexpected internal error occurred and the operation failed for an unknown reason. Check if the proper family has been provided. |
| 64 | TimeOutError | An operation timed out. |
| 65 | ReadError | A read operation failed. |
| 66 | InvalidOperationError | The DLL reported the requested operation is unavailable. |
| 70 | NrfjprogQspiIniNotFoundError | Unable to find QSPI INI file given as default or given with option
--qspiini. |
| 71 | NrfjprogQspiIniCannotBeOpenedError | Opening the QSPI INI file for read failed. |
| 72 | NrfjprogQspiSyntaxError | The QSPI INI file has a syntax error. |
| 73 | NrfjprogQspiIniParsingError | The QSPI INI file parsed has one or more missing keys. |
| 74 | NrfjprogQspiIniCustomMissingError | The QSPI INI file parsed has no custom instructions specified, but option
--qspicustominit was given. |
| 100 | FicrOperationWarning | FICR operation. It is important to be certain of what you do. |
| 101 | UnalignedPageEraseWarning | Address provided with page erase is not aligned to first address of page. |
| 102 | NoLogWarning | No log is possible because the program has no write permission in the current directory. |
| 103 | UicrWriteOperationWithoutEraseWarning | A UICR write operation is requested but there has been no UICR erase. |
| 104 | VeryLongOperationWarning | An operation that might take several minutes is being executed. Please wait. |
| 105 | FlashNotErasedWarning | The address being written to is not empty. Writing to this address may results in unexpected behavior. |
| 106 | NoVerifyOperationWarning | No verify operation selected with program. Result may not be correct. |
| 110 | LogWritePermissionWarning | Logging is not possible because the log file could not be opened for writing. |
| 111 | IniAndConfigWarning | --ini and --config were both provided. |
| 112 | QspiIniAndConfigWarning | --qspiini and --config were both provided. |