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

Am I able change Swap Page at Run Time?

Hi all,

I would like to use Pstorage module. Since flash endurance is 20.000 write/erase cycle, I need to use it very efficiently. If I use pstorage_update function it, works fine. I can use other pages to keep my data persistently, when one page is died, But only 1 swap area exists. Can I change the adress of the swap page while my application is running?

What I like to implement is to create pairs of application data page and corresponding swap areas. ( one page to keep data and one page for swap area, totaly 2 page).

It is a secondary question: How many pairs can I create? Can I use rest of the area after I program softdevice and application hex or is there a limit for pstorage module?

Parents Reply Children
Related