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 Nordic 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 | Clockspeed parameter cannot be parsed from ini file. Line might be deleted or invalid format. |
30 | JLinkARMDllNotFoundError | Unable to find install path for JLink 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. |
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). |
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. |
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. |
110 | LogWritePermissionWarning | Logging is not possible because the log file could not be opened for writing. |