Internal EEPROM Usage

cancel
Showing results for 
Search instead for 
Did you mean: 

Internal EEPROM Usage

371 Views
saipriyasubrama
Contributor II

I am using the internal EEPROM (256 bytes) in an S9KEAZN Kinetispart.

I would like to know what the global address is for the internal EEPROM. The Chapter 18 in the datasheet for the part goes over programming the FLASH and the global addresses for the FLASH in detail but nor the EEPROM. Is there an example code that I can use. I have deduced the following although I would like confirmation -

1. The Internal EEPROM address range is from 1000_0000 to 1000_00FF (256 bytes) as per chapter 4 in the datasheet for the part.

2. The registers that need to be written and loaded with the addresses and subsequently my data are fCCOBIX,FCCOBHI,FCCOBLO & FSTAT register for status check. Although the global addresses that need to be loaded in these registers range from global address[23:16] & globaladdress[15:0]. I would like more clarity on this.

3.Is there a PE component that can access the internal flash. I am working with the FTMRH_Init Component. 

An example code will be great to look at.

Thanks.

0 Kudos
1 Reply

185 Views
mjbcswitzerland
Specialist V

Hi

See http://www.utasker.com/kinetis/KE_EEPROM.html for details about using the EEPROM.

There are binary files including an EEPROM interface for FRDM-KE02Z, FRDM-KE02Z40M, FRDM-KEAZN32Q64 and FRDM-KEAZ64Q64
at
http://www.utasker.com/kinetis/FRDM-KE02Z.html
http://www.utasker.com/kinetis/FRDM-KE02Z40M.html
http://www.utasker.com/kinetis/FRDM-KEAZN32Q64.html
http://www.utasker.com/kinetis/FRDM-KEAZ64Q64.html

I have also attached the Flash driver from the uTasker project that includes internal and EEPROM support as reference (code of interest is conditional on KINETIS_KE_EEPROM). You can get complete code from the open source uTasker project on GITHub, which also allows simulation of the KE02 and its EEPROM for study and development purposes.

Finally, see a video showing some internal storage concepts used, valid for Flash, FlexNVM and EEPROM: https://youtu.be/Pe9A8qsefzQ

Regards

Mark

0 Kudos