flexnvm_eeprom
Overview
The flexnvm_eeprom example shows how to use flash driver to operate eeprom:
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
For parts with FlexNVM:
FlexNVM EEprom Example Start
Flash is UNSECURE!
EEprom Information:
EEprom Base Address: (0xxx)
EEprom Total Size: xx B
Make FlexRAM available for EEPROM
Now EEPROM data is read and written by accessing the FlexRAM address space
FlexRAM Base Address: (0xxx)
Read 16 bytes data from start of EEPROM space
The first 16 bytes data in EEPROM are not all 0x00s
Program the first 16 bytes memory space of EEprom as 0x00s
Successfully Programmed Location xx -> xx
Perform a system reset
FlexNVM EEprom Example Start
Flash is UNSECURE!
EEprom Information:
EEprom Base Address: (0xxx)
EEprom Total Size: xx B
Make FlexRAM available for EEPROM
Now EEPROM data is read and written by accessing the FlexRAM address space
FlexRAM Base Address: (0xxx)
Read 16 bytes data from start of EEPROM space
The first 16 bytes data in EEPROM are all 0x00s
Program a buffer(16 bytes) into the first 16 bytes memory space of EEprom
Successfully Programmed Location xx -> xx
Perform a system reset
FlexNVM EEprom Example Start
Flash is UNSECURE!
EEprom Information:
EEprom Base Address: (0xxx)
EEprom Total Size: xx B
Make FlexRAM available for EEPROM
Now EEPROM data is read and written by accessing the FlexRAM address space
FlexRAM Base Address: (0xxx)
Read 16 bytes data from start of EEPROM space
The first 16 bytes data in EEPROM are what we have progrommed before
Recover the first 16 bytes memory space of EEprom as 0xFFs
End of FlexNVM EEprom example
For Some parts Without FlexNVM (such as K65FN):
FlexNVM EEprom example Start
Current device doesn't support FlexNVM feature
End of FlexNVM EEprom example