Here is the example code demonstrating erase/write/read of internal EEPROM module integrated into MagniV devices such as S12ZVM, S12ZVC, S12ZVL etc.
Find detailed description in the project's main.c file.
The example project was created in CodeWarrior IDE v10.6.4 and tested on TRK-S12ZVL board.