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

Experimental Buttonless DFU - SDK13 - Package creation?

Hi all,

Could you please point me at the tutorial I missed... I am looking to adapt the title project to a custom project. I've run the sample and it advertises and shows the DFU service, all seems good. However, i realized that while I've built packages for secure DFU using nrfutil, this example doesn't seem to have a bootloader set of files per what I am used to.

Typically I would have a bootloader project and an application project, with keys, etc. shared between them. This example doesn't have a bootloader per se it seems.

Can anyone describe the method for creating a zip file that can be uploaded to the board running the ble_app_buttonless_dfu example? Is this secure or not? Any other usage information available?

Thank you...

Parents
  • You should think of the bootloader as a separate programm that stays somewhere in the ROM. In other words, there are two programm in the memory, the bootloader and the firmware (which in your case is buttonless_dfu). So, the bootlader as no link with the firmware, except that the firmware and the bootloader know how to switch to the other programm. The Zip package should only be compatible with the bootloader which will check it before dwonloading the new firmware. So, to answer your quesion, yes the DFU app needs a separate bootloader to reprogramm the firmware, the ZIP file is created with nrfutil (generate the key before and compile the bootloader with the generated key placed in dfu_public_key.c, there are lots of things to download to compile the micro-ecc library. Generate you package with nrfutil and you hex code (whatever the firmware is). The buttonless_dfu is just an example of a programm that know how to switch to bootloader. If you add the service to an other example, it will be able to switch to bootloader too.

  • Thank you Cedric, I was letting my 'wish' for what the example could do cloud the obvious reality :)

Reply Children
No Data
Related