1. How to mass erase to restore the partition of flash to configure 2KB flexRAM as EEPROM.
2.Share the example which have following features.
- EEE image loaded into RAM,
- Records read directly from RAM. No EEE operation.
- Records written directly to RAM. Image automatically synchronized with EEE flash.
It is needed to perform program partition command once (for blank new device or with performed mass erase operation). There is an example code in S32DS (flash_partitioning_s32k1..).
For any other use, it is needed to perform flash_partitioning operation according user configuration. Pay attention to AN11983 - Using the S32K1xx EEPROM Functionality:
https://www.nxp.com/docs/en/application-note/AN11983.pdf
EEPROM portion of FlexNVM will be accesses over FlexRAM memory address space.
Data flash portion of FlexNVM will be accesses ordinary way i.e. reading of flash address directly and erasing/programming of flash address.
Regarding mass erase, pay attention here:
https://community.nxp.com/t5/S32K/data-flash-partition/m-p/1073360