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

The problem of Uploading Zip file with DFU

Softdevice : S132

SDK ver : 15.3.0

Board : MBN52832DK

Hi There,

i was trying to do the DFU Example (ref : https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader.)

most of all are good but, the last step it does not work.

when i update the firmware using DFU, the nRF Toolbox show me the message "Upload failed : invalid object".

first i re-generate keys. cuz it looks like the key problem. however, it is not working.

what should i do?

the step of i do

1. generating the private keys.

2. compile and build bootloader firmware

3. generate zip file packet (i use the ble_uart example)

and next step, it can't work.

i am waiting your reply.

thank you

  • Hello,

    The "Invalid object" message suggest that there is something wrong with the packet that you try to upload. It may be that you have used the wrong keyset when you compile the bootloader and generate the DFU packet (zip packet). Alternatively, it may be that you use the wrong softdevice ID when you generate the packet. Can you show me the command that you use to generate your packet? And when you compile the bootloader, does the bootloader project use the public key generated together with the private key that you used to sign the DFU image?

    Best regards,

    Edvin

  • thank you for your reply.

    my code is "nrfutil pkg generate --hw-version 52 --application-version 0 --application nrf52832_xxaa.hex --sd-req 0xB7 --key-file BLE_key.key App_DFU_Test.zip".

    the software ver is 6.1.1, so i used 0xB7. (ref>nrfutil pkg generate --help)

    and , when i compile the bootloader, i only use private key.

    additionally,

    1st, when i use make command in cmd, in ..\SDK 15.3.0\external\micro-ecc, there are two file named nrf52nf_keil and nrf52hf_keil. what is the difference between?

    2nd, when i upload softdevice and DFU bootloader, except  Application, the board run DFU mode?? the document of nordic tell me if you want the board to enter DFU mode, you should press button 4. but my board, there are only 2 buttons.

Related