Is there a way to keep the address of the stored data so that I can access it after a reboot
Is there a way to keep the address of the stored data so that I can access it after a reboot
As long as you don't change the order off calls to pstorage_register()
(if you have multiple in your application), you will always get same base ID (page handle) after every reset. Then calling pstorage_block_identifier_get()
with the same parameters as you did before the reset will give you the same handle to the same block. The first parameter is a handle to the page (automatically assigned, but persistent unless code changes), the second parameter is the block number. This will typically be hard coded. The third is the output, the handle to the block. You can use this to access the data.
The details of pstorage are described here.