1.5.1.3 Configuring the Library

The PRIME Storage service library is configured via MCC. The available parameters depend on the device.

PIC32CXMT

On PIC32CXMT devices, persistent data is stored in the User Signature (SEFC0). The following figure shows the MCC configuration window for the Storage service.

Figure 1-30. PRIME Storage configuration
  • User Signature Block:
    • Selects User Signature block used for non-volatile storage
    • Allowed range: [1, 6]
    • Blocks 1, 2 and 3 are erased by the Erase pin
  • User Signature Page:
    • Selects User Signature page used for non-volatile storage
    • Allowed range: [0, 7]
    • Each page has 512 bytes

SAMD20

On the SAMD20, the Storage service is implemented using an emulated EEPROM in the internal Flash, managed through the NVMCTRL (see How the Library Works). This backend uses a fixed reserved row at the top of the Flash, so it has no parameters and requires no MCC configuration.