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

how pstorage_register insure same address between startup?

it register a handler, what about restart and run pstorage_register again, how it insure everytime we get the same address for our content in the flash? before pstorage_register, we use flash_io, which we know the address, so no problem to access the right place in flash, so pstorage_register ensures the correct address by order of calling pstorage_register?

and PSTORAGE_MAX_APPLICATIONS, seems not for application, but defines how many pages we use? is there a max number of pages we can use? how to find out this number for nrf51822-xxaa-s110? as I recalled, 16k for softdevice, and size of app(how to find the size of app in the device?) anything else will take space?

Thanks!

Parents
  • I wish one of the Nordic employees would sit down and write a quick one page app note on how to use PSTORAGE with the new SDKs that also make use of it. I know there are examples but some of the terminology in the code is non-intuitive. The Nordic developers do a great job of writing code that is highly configurable but that brings with it a complexity that isn't always well explained solely through sample projects.

    Reflash timing and just the idea of writing into your own program space is one of those things I always want to double-check that I've done correctly on an embedded system, and one that works just fine... until the day that it stops working fine. :)

    Just my 2 cents. Dan Danknick

Reply
  • I wish one of the Nordic employees would sit down and write a quick one page app note on how to use PSTORAGE with the new SDKs that also make use of it. I know there are examples but some of the terminology in the code is non-intuitive. The Nordic developers do a great job of writing code that is highly configurable but that brings with it a complexity that isn't always well explained solely through sample projects.

    Reflash timing and just the idea of writing into your own program space is one of those things I always want to double-check that I've done correctly on an embedded system, and one that works just fine... until the day that it stops working fine. :)

    Just my 2 cents. Dan Danknick

Children
Related