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

can we edit bootloader settings directly in SEGGER secure bootloader project?

From this guide:

https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5

Appendix 1

It talks about generate your own bootloader settings using nrfutil and splice it with bootloader project hex file with mergehex.

I wonder since bootloader project itself contains one bootloader settings, can we edit it directly in SEGGER?

If so how?

Thanks.

  • Hi Cpeng, 

    the bootloader settings is basically a struct stored at a specific location in flash. The settings are initialized in nrf_dfu_settings_init(), i.e. the settings struct are fetched from the flash page. The bootloader project does not initially populate the flash page as it is assumed that the settings are flashed as a separate binary. 

    I would recommend using nrfutil to generate the settings as a Post-Build Command, found under Project Settings > Code > User Build Step > Post-Build Command and then add the the settings hex as an additional load file in the SES project

    Best regards

    Bjørn

Related