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

Read and write app data in bootloader

I'd like to read and write data to the reserved app data space while in the bootloader. Is this possible with pstorage?

Because the BOOTLOADER_SETTINGS_ADDRESSS = 0x0003FC00 in dfu_types.h, in the pstorage_platform.h for the dfu project, the PSTORAGE_DATA_START_ADDR begins at the very top of the memory map.

However, the application needs store data in the app data region that the bootloader then reads. How can I set up pstorage so that this works? The PSTORAGE_DATA_START_ADDR is different for the application and the bootloader so that they are reading from different pages in memory.

If I modify the application's pstorage_platform.h so that it uses the same page that the bootloader settings are stored in, can I just erase the application data portion of that page, or will the enter page be erased using pstorage_clear?

I'm using S110 v8.0.0 and SDK 8.0.0.

Related