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

Hi there.

board : MBN52832

SDK : 15.3.0

Softdevice : S132, Ver 6.1.1

example file : ....\examples\dfu\bootloader_secure_ble

(refer) Nordic Documents : https://infocenter.nordicsemi.com/index.jsp , Nordic Blog : //devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader)

my command are : 

1.Generate Keys : nrfutil keys generate ...\Desktop\pip\private_key.pem

2.Generate Public Keys : nrfutil keys display --key pk --format code ...\Desktop\pip\private_key.pem --out_file private_key.c

3.Build bootloader : 

GNU Make ver 3.81 - Make the eUCC Library. there are two file(...\SDK 15.3.0\external\micro-ecc), nrf52hf_keil and nrf52nf_keil,  i used nrf52hf_keil.

and delete example key and replace private_key.c and build.

4. Generate DFU zip packet : nrfutil pkg generate --hw-version 52 --application-version 0 --application ...\Desktop\pip\nrf52832_xxaa.hex --sd-req 0xB7 --key-file ...\Desktop\pip\private_key.pem App_DFU_Test.zip (nrf52832_xxaa.hex is the uart example)

5.Test DFU : Flash bootloader and softdevice using nRF connect, and copy the zip file in my phone. and upload zipfile.

but uploading is file.

what should i do?

this is the log file.

Parents
  • Hi, 

    Could you try follow my step by step guide here and check if you have the same issue ? 
    Could you try setting application version to 1 instead of 0 ? 

  • thank you for your reply.

    i already solved this problem.

    it is the problem key file -> .c code file

    i dont know why nrfutil command work strange.  

    so i use command "nrfutil keys display --key pk --format hex ...\Desktop\pip\private_key.pem"

    and, make the .c key file myself.

  • : Since you eventually made it working, can you try to generate `dfu_public_key.c` with the older v3.5.1 version of nrfutil and see if that file also works. i.e. the bytes are in correct order? See my reply to above. It would be good for NordicSemi to fix this problem for others.

Reply
  • : Since you eventually made it working, can you try to generate `dfu_public_key.c` with the older v3.5.1 version of nrfutil and see if that file also works. i.e. the bytes are in correct order? See my reply to above. It would be good for NordicSemi to fix this problem for others.

Children
No Data