This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

DFU EXECUTE code 4 failed . Result code 5

I'm trying to send a DFU file but i get en error:

2019-08-16T16:11:40.300Z DEBUG Destroying DFU transport.
2019-08-16T16:11:40.300Z ERROR DFU failed with error: When writing 'EXECUTE' command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 5 (INVALID_OBJECT).
2019-08-16T16:11:40.325Z DEBUG 763 -> [00 76 00 00 13 ] type: VENDOR_SPECIFIC reliable:yes seq#:4 ack#:7 payload_length:5 data_integrity:1 header_checksum:a6 err_code:0x0
2019-08-16T16:11:40.325Z DEBUG 761/ 0 <- [N/A] type: ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
2019-08-16T16:11:40.325Z DEBUG 762/ 0 <- [01 76 00 00 00 00 ] type: VENDOR_SPECIFIC reliable:yes seq#:7 ack#:5 payload_length:6 data_integrity:1 header_checksum:a3 err_code:0x0
2019-08-16T16:11:40.325Z DEBUG 764 -> [N/A] type: ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
2019-08-16T16:11:40.342Z DEBUG GAP_EVT_DISCONNECTED time:2019-08-16T16:11:40.341Z connHandle:0 reason:22 reasonName:localHostTerminatedConnection
2019-08-16T16:11:40.343Z DEBUG 763/ 0 <- [02 11 00 00 00 16 ] type: VENDOR_SPECIFIC reliable:yes seq#:0 ack#:5 payload_length:6 data_integrity:1 header_checksum:aa err_code:0x0
2019-08-16T16:11:40.344Z DEBUG 765 -> [N/A] type: ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0

It works fine with examples ect. this is legacy code i have trying to figure out what is happening. any ideas where or what should i look for?

Parents Reply Children
  • Hi, Im using nRF5_SDK_15.3.0_59ac345 (on NRF52840) with s140_nrf52_6.1.1_softdevice.hex

    Im using the liker file  from nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_buttonless_dfu\pca10056\s140\armgcc

    i run the command 

    nrfutil pkg generate --application _build/light_sense_LIGHT_SENSE_V2_release.hex --application-version 1 --hw-version 14 --sd-req 0xb6 --key-file ../../hug_c_libraries/nordic/components/dfu/hug_dfu_public_key.pem \

    and it compiles and creates the dfu zip.

    im using nrf connect tool to upload the dfu

    i have also attached bootloader linker filesecure_bootloader_gcc_nrf52_release.ld

    let me know if i can provide any more information

Related