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

Get the size of SoftDevice in bootloader

Hi!

We are using the 51822 with S110. I'm currently writing a very simple bootloader which fetches the new application from an external SPI flash.

My plan is to place the bootloader at the end of the 51822s flash, the Softdevice @0x0 and the application right after the SoftDevice. When upgrading, I was hoping we could bundle both the SoftDevice and the application in one binary file, and write the whole thing to flash with the bootloader. My problem then is, if the SD-size change, how can the bootloader figure out where the application is?

Parents
  • Hi Henriks,

    If you have a look at our DFU bootloader, in dfu_types.h we have SOFTDEVICE_INFORMATION_BASE at 0x3000. This is the page that we keep the information about the softdevice type. The structure of the softdevice information is SOFTDEVICE_INFORMATION_Type.

    We will try keep the same location for softdevice info page in all of our current and future softdevices.

Reply
  • Hi Henriks,

    If you have a look at our DFU bootloader, in dfu_types.h we have SOFTDEVICE_INFORMATION_BASE at 0x3000. This is the page that we keep the information about the softdevice type. The structure of the softdevice information is SOFTDEVICE_INFORMATION_Type.

    We will try keep the same location for softdevice info page in all of our current and future softdevices.

Children
No Data
Related