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

Access DFU settings page

Hi,

I'm currently working on a project including the buttonless DFU.

I would like to read the bootloader settings page from the application, especially the app version field. I know that these settings are stored at address 0x0007 F000 and I can of course just read them directly from there (the word at 0x0007 F008 should correspond to the app version).

But what if at some point this address changes or if the data structure is changed?

Should I manually define an APP_VERSION at the build stage that equals the DFU packet version given to nrfutil?

What is the recommended way of managing / retrieving the running app version? 

Details:

SoC: nRF52832

SDK: 15.2.0

SD: S132 v.6.1.0 

Regards,

William

Parents
  • If anyone is interested,

    I just went with providing the DFU settings page address from the linker script and then I read it manually in my application. I added an assert in the bootloader linker script that asserts that the bootloader settings page is 0x0007 F000 along with a message prompting to update the corresponding address in the linker script of the application if changed.

    Perhaps not the most ambitious or most proper way, but it works. 

Reply
  • If anyone is interested,

    I just went with providing the DFU settings page address from the linker script and then I read it manually in my application. I added an assert in the bootloader linker script that asserts that the bootloader settings page is 0x0007 F000 along with a message prompting to update the corresponding address in the linker script of the application if changed.

    Perhaps not the most ambitious or most proper way, but it works. 

Children
No Data
Related