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

Memory organization with SoftDevice, bootloader and main app

Hi all,

I want to ask whether I can put the main app on random address in the flash of the chip if there is bootloader and SD present due to future releases of SD and memory requirements?

Here is an example:

I have MBR from 0x0 to 0x1000 and from 0x1000 to 0x27000 I have SD7.0. Can I put the main app from address 0x33000 for example because I don't know now whether in the future SD will be larger than the SD7.0? I want to apply this to the RAM memory as well. Can I reserve more RAM memory for future releases of the SD?

If I can put the main app from 0x33000, should I use sd_softdevice_vector_table_base_set() for setting the start address of the main app on 0x33000 or the bootloader will automatically jump to SD and then to the main app (if the main app is right after SD)?

Can I set the MBR_SIZE of the bootloader to the address 0x33000 to avoid calling the above mentioned SD function?

I am particularly interested in the first memory organization (leaving memory for future releases of the SD).

Thanks in advance.

Parents
  • Hi

    We recommend setting the MBR_SIZE to its default value (from 0x0 to however much space it takes) rather than at a later address, as this hasn't been tested to my knowledge, and it may cause the board to malfunction. If you want, you could test, but I don't see a specific reason as to why you would do it. Why do you want to avoid the sd_softdevice_vector_table_base_set()?

    Best regards,

    Simon

Reply
  • Hi

    We recommend setting the MBR_SIZE to its default value (from 0x0 to however much space it takes) rather than at a later address, as this hasn't been tested to my knowledge, and it may cause the board to malfunction. If you want, you could test, but I don't see a specific reason as to why you would do it. Why do you want to avoid the sd_softdevice_vector_table_base_set()?

    Best regards,

    Simon

Children
No Data
Related