Hello Maria:
You may check the application note AN4282, which instructs you on how to use the EEPROM functionality.
Also, if you installed CodeWarrior, there is an example code for the K40 in the next installation path:
C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Kinetis_Examples\k40\flexmem
I hope these references are useful.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------