I'm looking to build a custom bootloader for my NRF52810 device. I'm developing on nrf sdk 17 with SD 112. I will be leveraging the secure bootloader example and re-using code.
Can you please clarify what the last line means "The size of the bootloader is fixed for the lifetime of the device. This is because the location (MBR_BOOTLOADER_ADDR) that stores the start address of the bootloader is not (safely) updateable. See the SoftDevice Specification for more information."
Am I not able to build a smaller custom boot loader? And write its start address into the UICR.NRFFW[0]? More importantly, if I write a smaller bootloader, am I not able to use the flash space saved for my application?
Secondly, all the DFU examples in the SDK seem to start at 0x22000 , instead of the memory layout in above link which says Bootloader for nrf52810 starts at 0x28000. Any reason for this? Are the DFU examples larger than the 24k set aside for bootloader in nrf52810?
Regards,
Hari