Hi
I am working on NXP KEA64 MCU I want to read and write data to eeprom but I can't
find any example for KEA64 any one can help me ?
How I can find a simple example of read and write to eeprom ?
Thanks
Your MCU part number is "S9KEAZN16AM", so please download the S9KEA64Z64M20SF0RM, KEA64 Sub-Family Reference Manual - Reference Manual
You can find the Chapter 18 Flash Memory Module (FTMRH) in this KEA64RM.
Have you download and install the Version: 1.3.0 (2017-05-08) Keil.Kinetis_KEAxx_DFP.1.3.0.pack?
You should be able to find related files and demo example in it.(C:\Users\xxx\AppData\Local\Arm\Packs\Keil\Kinetis_KEAxx_DFP\1.3.0)
Yes I download the pack and install it in the example I cant fined any example for EEPROM . I post the screen shot below.
finally I find my problem of dont recognizing FTMRH by keil my problem was I dont include kea64 start up file in to flash.h file.
And I have another problem now in the KE02 eeprom example all of funtion is for write in to eeprom but how I can read eeporm?
Sorry. I may not have described clearly. After download and install that pack, you should be able to find related files(startup_SKEAZN642.s \ system_SKEAZN642.c \ SKEAZN642.h\ system_SKEAZN642.h etc.) and demo example(not EEPROM) in it.(C:\Users\xxx\AppData\Local\Arm\Packs\Keil\Kinetis_KEAxx_DFP\1.3.0)
You can find that EEPROM_demo direct read the EEPROM address:
OK I opened the eeprom_demo example .
And from this example :
line:
/* Erase 99th sector */
for( i=0;i<128;i++)
{
EEPROM_EraseSector( i*2 + EEPROM_START_ADDRESS);
}
Erase the sector and line :
for(i=0;i<512;i++)
{
u8DataBuff[i] = (uint8_t)i;
}
/* write data to erased sector */
EEPROM_Program( EEPROM_START_ADDRESS,&u8DataBuff[0],256 );
Is writing to eeprom .
And my question is how I can read eeprom data ?
Hi star333,
Please check if your device is KEAZN64 or KEAZ64.
For the device without 256B EEPROM, please refer to the answer in KEA8 EEPROM EMULATION.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Sorry. I did not find example for KEAZN16, but I think you can refer to the EEPROM_demo of KE02. Download the FRDM-KEXX Driver Library Package
Then you should be able to find the example (C:\Users\nxa07315\Desktop\FRDM-KEXX-Driver-Library-Package\ke_drv_lib\build\cw\ke02\EEPROM_demo)