7 years, 1 month ago.

Write to persistent memory of nrf51822

Dear all,

I have been trying to find a way to write to the flash memory of my nrf51822, some values, then read them out and update them.

I have come across the pstorage library, but I am struggling to import it to the mbed compiler inside the projects that I am already working on (BLE_GAT_EXAMPLE).

Also I wonder if there is a tutorial or a simple example that does exactly that.

Thank you very much for your help.

2 Answers

7 years, 1 month ago.

This is not currently supported. Though, you could buy an external flash chip and then use the BlockDevice API or FileSystem API (on top of BlockDevice) to store data there - https://os.mbed.com/docs/v5.6/reference/storage-overview.html.