Enumeration Members

EXT_ERROR: 11

Extended error. The next byte of the response contains the error code of the extended error.

FW_VERSION_FAILURE: 2821

The firmware version is too low. For an application or SoftDevice, the version must be greater than or equal to the current version. For a bootloader, it must be greater than the current version. to the current version. This requirement prevents downgrade attacks.

HASH_FAILED: 2826

The hash of the firmware image cannot be calculated.

HW_VERSION_FAILURE: 2822

The hardware version of the device does not match the required hardware version for the update.

INIT_COMMAND_INVALID: 2820

The init command is invalid. The init packet either has an invalid update type or it is missing required fields for the update type (for example, the init packet for a SoftDevice update is missing the SoftDevice size field).

INSUFFICIENT_RESOURCES: 4

Not enough memory for the data object.

INSUFFICIENT_SPACE: 2829

The available space on the device is insufficient to hold the firmware.

INVALID: 0

Invalid opcode.

INVALID_ERROR_CODE: 2817

Invalid error code. This error code should never be used outside of development.

INVALID_OBJECT: 5

Data object does not match the firmware and hardware requirements, the signature is wrong, or parsing the command failed.

INVALID_PARAMETER: 3

Missing or invalid parameter value.

NO_ERROR: 2816

No extended error code has been set. This error indicates an implementation problem.

OP_CODE_NOT_SUPPORTED: 2

Opcode not supported.

OPERATION_FAILED: 10

Operation failed.

OPERATION_NOT_PERMITTED: 8

The state of the DFU process does not allow this operation.

SD_VERSION_FAILURE: 2823

The array of supported SoftDevices for the update does not contain the FWID of the current SoftDevice or the first FWID is '0' on a bootloader which requires the SoftDevice to be present.

SIGNATURE_MISSING: 2824

The init packet does not contain a signature. This error code is not used in the current implementation, because init packets without a signature are regarded as invalid.

SUCCESS: 1

Operation successful.

UNKNOWN_COMMAND: 2819

The command was successfully parsed, but it is not supported or unknown.

UNSUPPORTED_TYPE: 7

Not a valid object type for a Create request.

VERIFICATION_FAILED: 2828

The hash of the received firmware image does not match the hash in the init packet.

WRONG_COMMAND_FORMAT: 2818

The format of the command was incorrect. This error code is not used in the current implementation, because NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED and NRF_DFU_RES_CODE_INVALID_PARAMETER cover all possible format errors.

WRONG_HASH_TYPE: 2825

The hash type that is specified by the init packet is not supported by the DFU bootloader.

WRONG_SIGNATURE_TYPE: 2827

The type of the signature is unknown or not supported by the DFU bootloader.