jn5168 program with serial boot codes enter for data into eprom
The Persistent Data Manager (PDM) module which handles the storage of stack context data and application data in JN516x internal EEPROM.
- Initialising the PDM module
- Managing data in EEPROM
- Storing counters in EEPROM
- PDM features including mutexes, EEPROM wear counts and event handling
Saving Data to EEPROM
The first time that a record is saved using PDM_eSaveRecordData(), the record is created and the data is written in its entirety, provided there are enough free EEPROM segments to hold the data (you can first find out how many segments are available using the function PDM_u8GetSegmentCapacity())
The JN516x/7x internal EEPROM consists of multiple small segments. There are 63 segments of 64 bytes each. The internal PDM library can store no more than one data record in each segment, although a large record may be stored across multiple segments.
The function PDM_u8GetSegmentCapacity() returns the number of segments that are free for PDM.
The function PDM_u8GetSegmentOccupancy() returns the number of segments that are in use
PDM API Chapter 6
This chapter details the functions of the Persistent Data Manager (PDM) API that supports context data and application data saving in Non-Volatile Memory (NVM).
For a better reference please take a lool to the JN51xx Core Utilities User Guide
Hope it helps
Retrieving data ...