Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is it possible to modify BLE DFU bootloader size

Hi, everyone,

We develop BLE project including DFU bootloader.

But to use the standard bootloader "as is" it is not possible for us. Due to this problem we must make some modifications that require to make it bigger.

But accrording the manual in SDK the start of bootloader is defined on standard address close to the end of the flash.

Is it possible to modify the BLE bootloader to give it more space?

If it is possible which configuration files must be changed. Will it work with NRF ToolBox?

Thank you forward for paying attention

Best Regards

Boris Fridman

Parents Reply Children
  • You can change the flash start address and size in linker script (secure_dfu_ble_gcc_nrf52.ld).

    E.g., 

    FLASH (rx) : ORIGIN = 0x78000, LENGTH = 0x6000 -> FLASH (rx) : ORIGIN = 0x79000, LENGTH = 0x5000 // Note: start address must be page aligned

    Keep in mind that it is not possible to change the start address through DFU, so Ideally there should be some headroom in case you need to upgrade to a larger bootloader in the future. 

Related