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

custom DFU package

Hi,

I am using nRF51822, SDK 10, SoftDevice S110 v.8

I am strugling with DFU over BLE using custom DFU package.

I am able to flash bootloader and update FW with pregenerated files in SDK using nrf Connect(\dfu\ble_dfu_send_hex\test_images_update_nrf51\dfu_test_app_hrm_s110.zip).

But strugling with custom made package. Update of application is good enough for me. I do not need to update softdevice nor bootloader.

I use these commands in nrfutil:

nrfutil keys generate privatekey.pem
nrfutil pkg generate --hw-version 51 --sd-req 0x64 --application-version 4 --application nrf51422_xxac_s110.hex --key-file privatekey.pem app_dfu_package.zip

DFU fails in both nrf Connect and nRF Toolbox. Error is: disconnected by remote device .

I followed this tutorial: https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/setting-up-device-firmware-updatedfu-on-the-nrf5-d

But there is not much about generating of custom DFU packages. I think problem could be signing. (I do not understand it properly and I am probably missing something... I sign the package but how does the application currently running on nRF51822 know right key?) 

Could you please guide me?

Thanks,

Mila

Related