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

Send single flash page as DFU package over BLE

Hi,

I would like to create a DFU package for updating an application config flash page.

We have a device where the device reads some configurations from a specific flash page.
Is it possible to update this page over BLE by sending the page as a signed DFU package?

We can create a hex file for the specific page. But how can we use nrfutil to create a DFU package
that only contains this application config data?

Thanks,

  Henrik

  • Hi Henrik, 

    We don't support DFU update for specific flash page(s) in our bootloader out of the box. The way the bootloader works is that it receive binary image (no address) and automatically update that image to the address of the original application. 

    If you want to update the image to a specific flash page, you would need to modify the bootloader, so that it would detect if it's a normal application image update  or it's a config flash page (so the address to be updated is different). The DFU init packet would need to be updated. The easiest way to do that I can think of is to use application version . You can define a certain application version for your config flash page update and other for your application update. 

Related