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

how much flash memory of 16kb available for user

I'm using nrf51 with 16kb memory

I know that there is a region for softdevice, region for the bootlader and region for the app code and a free region

my questions : is it in this free regions where my code save data using pstorage?

what's the size of this free region?

if the bootloader or the softdevice are not used, would their memory regions be available for general use using pstorage?

image description

Parents
    1. Yes that's where it's stored
    2. As big as you need it to be within the unused pages available at the top of flash
    3. Yes, if you aren't using a bootloader or softdevice then your code occupies the space at 0x00000000 and right after you code is free space and you can use that for pstorage.
  • well if you're careless enough you can break anything. However you tell the pstorage module how many pages it can use and that's all it will use, so as long as you give it the right number, it's not a problem. if you're particularly paranoid you could make yourself a separate linker section which is the pstorage section and then the linker would tell you if it overlaps something else. However it's really not that hard to figure out how big your app is and only use the flash above it.

Reply
  • well if you're careless enough you can break anything. However you tell the pstorage module how many pages it can use and that's all it will use, so as long as you give it the right number, it's not a problem. if you're particularly paranoid you could make yourself a separate linker section which is the pstorage section and then the linker would tell you if it overlaps something else. However it's really not that hard to figure out how big your app is and only use the flash above it.

Children
No Data
Related