I have problem with ble dfu update using zip package with hex + init file via nrfutil. I am getting error Invalid Object when I am trying invoke command
nrfutil dfu ble -ic NRF52 -pkg app.zip -p COM22 -n "DfuTest" -f
I have connected NRF52 DK (NRF52840) to COM22 and second custom board with NRF52832. When I am downloading code with prepared zip package by Nordic (bootloader_secure_ble_debug_with_bonds_s132.zip) everything is ok (both NRF Connect and nrfutil dfu).
Steps to generate zip file and ota dfu:
1. Pogram my custom board with nrf52832 via openocd s132_nrf52_6.1.1_softdevice.hex
2. Program my custom board with nrf52832 via openocd bootloader_secure_ble_debug_without_bonds_s132.hex.
3. Generate private key: nrfutil keys generate private.pem
4. Generate zip file: nrfutil pkg generate --hw-version 52 --sd-req 0xAF --application bootloader_secure_ble_debug_without_bonds_s132.hex --application-version 4 --key-file private.pem app.zip
5. Then download code via BLE: nrfutil dfu ble -ic NRF52 -pkg hrs_application_s132.zip -p COM22 -n "DfuTest" -f
6. I am getting error Invalid Object.
As I wrote everything is ok if I use zip file prepared by Nordic in secure_dfu_test_images folder in SDK.
I am using Python version 2.7.13.