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

Where does fstorage section show in Segger's Memory Usage?

Hi Devzone:

I am using the example project "fsorage" on nRF52840. 

I see the project specifies the range for the flash storage to be

.start_addr = 0x3e000,
.end_addr = 0x3ffff,

However when I opened up segger's Memeory Usage GUI i don't see anything under the section 0x3e000~0x3ffff

See below:

Why is that?

Also how do we specify our flash storage range if we want to avoid collision/ overlapping with our code?

Thanks.

  • Hi,

    The fstorage library uses the flash runtime, but you will not find anything in the data location in the memory map of any toolchain. Essentially you just need to make sure that your app does not overlap with the fstorage location. The easiest way to do this is to reduce the flash size in the linker configuration of your app, so that it ends below the address range of your fstorage pages.

    You should also take care to avoid other parts of the flash if you use FDS or bootloader, which uses flash pages at the end of the end (see bootloader memory layout).

Related