1.5.1.1 How the Library Works

The PRIME Storage service library offers the necessary functions to manage persistent information data, which include:
  • Read persistent data from non-volatile memory
  • Write persistent data from non-volatile memory

There are different information types that can be accessed (see SRV_STORAGE_TYPE Enum).

The implementation depends on the used MCU device:
  • For PIC32CXMT devices, it is implemented using the User Signature (SEFC0)
  • For SAMD20 devices, it is implemented using an emulated EEPROM in the internal Flash, managed through the NVMCTRL (a reserved row at the top of the Flash), as these devices do not have a User Signature area
  • For other MCU devices, it is not implemented yet

This library needs to be initialized, but it does not need to be maintained periodically.