Dear DevZone,
I'm trying to perform a BLE OTA DFU with two nRF52840 Dev Kits.
I followed the step by step guide from Nordic provided at the following link: devzone.nordicsemi.com/.../getting-started-with-nordics-secure-dfu-bootloader
In particular:
- I generated public and private keys
- I compiled the uECC lubrary
- I built the bootloader having substituted the public_key of reference
- I generated the DFU .zip packet with example blinky using the following nrfutil command: nrfutil pkg generate --hw-version 52 --application-version 0X00 --application C:\...\blinky_pca10056_mbr.hex --sd-req 0xB6 --key-file C:\...\private.key app_dfu_package.zip
- I flashed firstly the softdevice, then the bootloader (examples\dfu\bootloader_secure_ble) on the target device (the one I want to update with OTA DFU)
Here, I verified through nRFConnect that the program start advertising the presence of the devkit as DfuTarg (I connected the other devkit to the PC as master, without code on it). Contrarily to what written in the guide, led 1 and 2 light up instead of led 3, but looking at this ticket, the state I experience should be the correct one for the entrance in DFU mode.
Now, the problem occurs when I try to perform the OTA DFU. To do this, I use nrfutil and the command:
nrfutil dfu ble -ic NRF52 -f -pkg C:\..\app_dfu_package.zip
In fact, it shows the following error:
Do you have any suggestions on this?
I also tried to perform the DFU through nRF Connect from mobile app-PC, but I cannot find the way to add the .zip packet in order to be sent(below the screenshot).
Thank you very much in advance,
best regards,
Gianluca