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

Bootloader code target size overwrites Pstorage allocation

SDK 9.0.0 sd s110

I want bootloader to store some persistent data at the APP DATA location. while going through the bootloader(dual_bank_ble_s110) source code, i noticed that it is registering two pages starting at 0x3F800 for persistent storage module.

image description

but the bootloader(dual_bank_ble_s110) project target settings shows that it is reserving size 0x3C00(15K) starting at location 0x3C000 for the bootloader code. image description

In such case there is only 1K space left for persistent storage above the bootloader code, How is it possible that the code manages 2k persistent storage without overwriting code.

/*********************Question Update after first answer************************************/

image description

when i try to include my source code to bootloader(dual_bank_ble_s110) project. It gives the following error. I don't have any clue what going on, i also tried to increase the BOOTLOADER_REGION_START by 8 pages(0x0003A0C0). it shows the same error. Can you please help me with this.

Related