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

INVALID_OBJECT Error when try to DFU with nRFConnect

Hi,

I generated by DFU package following the BLOG post: devzone.nordicsemi.com/.../

However I had to make some changes as it seems to be out of date. I used the following script command:

nrfutil dfu genpkg --application-version 1 --application Images\nrf52832_xxaa.hex --sd-req 0x8C --key-file privat.key DFU_Packages\app_dfu_package.zip

I used the private key generated from the Blog's Python example (a whole other can of worms). However when I try to DFU using the nRFConnect BluetoothLE Desktop app I get the following 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)"

Unfortunately there doesn't seem to be any documentation on the nRFConnect for me to cross reference this error. I noted that the nRFConnect Android app also doesn't work, which leads me to think my DFU package wasn't generated correctly. Any insight into where the issue might be?

Also note I did use my private key to generate a public key which I copied into my Bootloader project named as dfu_public_key.c.

Thanks guys,

p.s. using S132 V3, and SDK 12.3

Parents
  • Below is the nrfutil display of my zip file:

    DFU Package: <DFU_Package_Generation\DFU_Packages\Test-DEBUG.zip>:
    |
    |- Image count: 1
    |
    |- Image #0:
       |- Type: application
       |- Image file: nrf52832_xxaa.bin
       |- Init packet file: nrf52832_xxaa.dat
          |
          |- op_code: INIT
          |- signature_type: ECDSA_P256_SHA256
          |- signature (little-endian): 9f2794061d8d54040679c6df94a1cd94dd309792a544c036340be5d2e42be90a29e69c7e56086b59cc36b5fa80d116eb99a477177f575160cd02517b59d4839b
          |
          |- fw_version: 0xFFFFFFFF (4294967295)
          |- hw_version 0xFFFFFFFF (4294967295)
          |- sd_req: 0xFFFE
          |- type: APPLICATION
          |- sd_size: 0
          |- bl_size: 0
          |- app_size: 68084
          |
          |- hash_type: SHA256
          |- hash (little-endian): fbec689ff9011daa5f17a848e206f88836315dc47be5d8bd81ab2a3a1166a207
          |
          |- is_debug: True
    
Reply
  • Below is the nrfutil display of my zip file:

    DFU Package: <DFU_Package_Generation\DFU_Packages\Test-DEBUG.zip>:
    |
    |- Image count: 1
    |
    |- Image #0:
       |- Type: application
       |- Image file: nrf52832_xxaa.bin
       |- Init packet file: nrf52832_xxaa.dat
          |
          |- op_code: INIT
          |- signature_type: ECDSA_P256_SHA256
          |- signature (little-endian): 9f2794061d8d54040679c6df94a1cd94dd309792a544c036340be5d2e42be90a29e69c7e56086b59cc36b5fa80d116eb99a477177f575160cd02517b59d4839b
          |
          |- fw_version: 0xFFFFFFFF (4294967295)
          |- hw_version 0xFFFFFFFF (4294967295)
          |- sd_req: 0xFFFE
          |- type: APPLICATION
          |- sd_size: 0
          |- bl_size: 0
          |- app_size: 68084
          |
          |- hash_type: SHA256
          |- hash (little-endian): fbec689ff9011daa5f17a848e206f88836315dc47be5d8bd81ab2a3a1166a207
          |
          |- is_debug: True
    
Children
No Data
Related