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

Data is not retained in memory after power off

Hi,

I am storing data using pstorage module but when i power off my nrf51-dk board, the contents get deleted and not retained in memory. What could be the reason for that?

I am using S130 and SDK11.

PSTORAGE_NUM_OF_PAGES as 2

block_size = 20 block_count = 2

Parents
  • Hi soumil

    In order to find out what is going on, perhaps you could read the flash address manually before powering the nRF51 off and then again read the same flash address after booting up.

    Read 20 byte flash contents from memory address 0x0003F400 with the command:

    nrfjprog --memrd 0x0003F400 --n 20
    

    You can do the same after power down of the nRF51 to manually verify that the same flash address retains the written values.

    In order to realize where pstorage stores the values of allocated blocks, look at this thread.

Reply
  • Hi soumil

    In order to find out what is going on, perhaps you could read the flash address manually before powering the nRF51 off and then again read the same flash address after booting up.

    Read 20 byte flash contents from memory address 0x0003F400 with the command:

    nrfjprog --memrd 0x0003F400 --n 20
    

    You can do the same after power down of the nRF51 to manually verify that the same flash address retains the written values.

    In order to realize where pstorage stores the values of allocated blocks, look at this thread.

Children
No Data
Related