Hello,
I'm a little consufed about the page I need to erase before I can write again on the UICR CUSTOMER registers. Is there a way to erase only the UICR CUSTOMER registers?
Thank you
Hello,
I'm a little consufed about the page I need to erase before I can write again on the UICR CUSTOMER registers. Is there a way to erase only the UICR CUSTOMER registers?
Thank you
UICR customer registers are meant to be stored with values that are supposed to stay there during the life time of the softdevice. you cannot erase them without erasing everything on chip.
if you want persistant storage that you need to modify now and then, use pstorage module which will give you one page (1024 bytes) and you can write/read/modify single or multiple words in that page . There is really good documentation for it in SDK and many have used it and tested to be working OK. This module is designed to work well even with ongoing radio activity.
pstorage is heavier weight library designed to work in between radio activity. It cooperates with softdevice to negotiate the time for softdevice to become idle so that it gets time to write to the flash. The last method is direct writing to flash without softdevice coming into picture, this way the app takes responsibility that it does not make flash writes while the radio is accessing flash,else there will be a memory bus error currently pstorage cannot work without softdevice, but we are planning to make work without it in the future releases.
pstorage is heavier weight library designed to work in between radio activity. It cooperates with softdevice to negotiate the time for softdevice to become idle so that it gets time to write to the flash. The last method is direct writing to flash without softdevice coming into picture, this way the app takes responsibility that it does not make flash writes while the radio is accessing flash,else there will be a memory bus error currently pstorage cannot work without softdevice, but we are planning to make work without it in the future releases.