KEA64 EEPROM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KEA64 EEPROM

2,457 Views
star333
Contributor II

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

Labels (1)
0 Kudos
10 Replies

2,420 Views
star333
Contributor II

Thanks for your answer.

In the KE02 there is a register named "FTMRH" that there is not in KEA16 or KEA64 .

Can you find a example for KEA64 ?This is similar to KEA16 

0 Kudos

2,416 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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.

2,389 Views
star333
Contributor II

Thanks 

Mybe I have a problem in keil startup file that dont know the FTMRH .

0 Kudos

2,383 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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)

0 Kudos

2,378 Views
star333
Contributor II

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?

0 Kudos

2,372 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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:

EEPROM read address.png

0 Kudos

2,369 Views
star333
Contributor II

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 ? 

0 Kudos

2,438 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi star333,

Please check if your device is KEAZN64 or KEAZ64.

Family Comparison Table KEA.png

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.
-------------------------------------------------------------------------------

0 Kudos

2,434 Views
star333
Contributor II

I has a mistake that my mcu is not kea64 it is kea16

My MCU part number is "S9KEAZN16AM".

I check the datasheet it has 256B of eeprom.

What I do now?

0 Kudos

2,428 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

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)