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 ?