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

how to create .zip file for DFU ?

Hello All,

I am working on nRF51822. Use nRF51 SDk 12.3.0 version for reference. Writing program in IAR in windows.

Porting the OTA  DFU to my custom APP.

  • use SDK 12.3.0 
  • Softdevice version S130 V2.0.1
  • Hardware was a PCA10028 board with an NRF51822 on it.
  • I used the IAR embedded workbach.

Here is the step how can i download program in chip?.

1)I used secure DFU so first Create a unique key, as well as set up the bootloader. Creating my key and setting it up in the bootloader

2)for Key generate this command use nrfutil.exe keys generate private.key and then nrfutil keys display --key pk --format code private.key --out_file public_key.c  and then copy-paste the output into the dfu_piblic_key.c file in the dfu code.

3)Download softdevice and secure bootloader hex file in my chip.

4)Scanning the device in my device(phone) in nRF connect application. Advertisement name is DFUTARG and connect to it .

5)Enable notification of DFU .Then download zip file but not download and give warning as show below

I am create zip file using this command 

  • nrfutil pkg generate --hw-version 51 --application-version 1 --application ble_app_buttonless_dfu_pca10028_s130.hex --sd-req 0x87 --key-file private.key app_dfu_package.zip
  • nrfutil pkg generate --hw-version 51 --sd-req 0xFFFE,0x81,0x87,0x88 --application-version 0--application ble_app_buttonless_dfu_pca10028_s130.hex --key-file private.pem app_dfu_package.zip
  • nrfutil pkg generate --hw-version 51 --sd-req 0x87 --application-version 4 --application app.hex --key-file key.pem app_dfu_package.zip

Try all zip one by one but in all zip format same warring show.

So, please give me some instruction for create zip file which support this module and download application successfully.  

Thanks & Regards,

Urvisha Andani

Parents Reply Children
No Data
Related