This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to understand Pstorage

I'm confused. in other platform, i know flash stard and end adress ,alse page size ,i can read and write data directly. But use pstorage mode as follows : pstorage_init() ->pstorage_register()->read (for use)-> write(for persistenct storage)

Firstly, my code works correctly. But I can't understand,when power restart , code runs the same procedure(pstorage_init() ->pstorage_register()->read (for use)-> write(for persistenct storage)) 1.why i can read correctly? It allocates the same blocks as code runs last time ? 2.Once allocated,is there something to mark it ?

Related