How could I write and read in KEA64 EEPROM?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How could I write and read in KEA64 EEPROM?

2,343件の閲覧回数
MartinFalcon95
Contributor I

Hi! I'd like to know how to code for configuration, writting and reading EEPROM in a KEA64 (S9KEAZN64A).

My "bus CLK" = 20MHz

I already have the reference manual and I'm in chapter 18.

It could be very helpful if someone could share me an example code too please.

I'm working in CodeWarrior

MartinFalcon95_0-1668554640538.png

 

0 件の賞賛
返信
13 返答(返信)

2,321件の閲覧回数
MartinFalcon95
Contributor I

I have another question; how do you install the pack in Code Warrior once this is downloaded?

0 件の賞賛
返信

2,323件の閲覧回数
MartinFalcon95
Contributor I

I'm seeing the page from the link and it takes me to this:

MartinFalcon95_1-1668611436889.png

Which of all is the version do I have to download?

Thanks

0 件の賞賛
返信

2,328件の閲覧回数
MartinFalcon95
Contributor I

Hi Robin,

Thanks your your answer. I'm seeing the post you shared me and I have a question, if I'm using Code Warrior, the package in the image, "Keil.Kinetis" will work for Code Warrior? Thanks

MartinFalcon95_0-1668610986805.png

 

0 件の賞賛
返信

2,308件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry I didn't make it clear:

I did not find example for KEAZN64, 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) 

This project is based on CodeWarrior. You don't need to download the Keil package. 

KEAZN64 is a derivative from KE02Z64, so you can use it.

0 件の賞賛
返信

2,295件の閲覧回数
MartinFalcon95
Contributor I

What is the process to adapt it?

I already downloaded the Package, and I have the EEPROM project in my workspace, I took the flash.c and flash.h to my project but there's some failiures, 

MartinFalcon95_0-1668717313487.png

is it really needed to add the common.h and the arm_cm0.h?

0 件の賞賛
返信

2,289件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

You may need to manually modify the EEPROM API in flash.c so that it does not depend on common.h and the arm_cm0.h
Sorry for the inconvenience we bring you!

These TRK-KEA64_LABTS1\2\3\4 examples contain only a few peripheral(UART\FTM\ADC\KBI) drivers.
Have you considered what to do if you need other peripheral drivers?

Maybe you should use Processor Expert to create a KE02 40MHz project, and then add the peripheral drivers you need.FLASH_LDD.png

0 件の賞賛
返信

2,284件の閲覧回数
MartinFalcon95
Contributor I

Hello, thank you for the info.

So, if I create a new project, with KE02, it could work for SKEAZN642?

0 件の賞賛
返信

2,268件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Yes. For example, if you are using KEAZN64, you can choose KE02Z64 when creating a Processor Expert project. The corresponding package needs to be configured in the project.

CPU type.png

0 件の賞賛
返信

2,264件の閲覧回数
MartinFalcon95
Contributor I

To create a Processor Expert project is necessary to create a "New MCU project"? Or It can be created inside of my current project?

0 件の賞賛
返信

2,243件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Please create a "New MCU project" with Processor Expert. 

0 件の賞賛
返信

2,232件の閲覧回数
MartinFalcon95
Contributor I

Hello. I see this image in the datasheet but, I don't see where EEPROM memory start, between which directions EEPROM is available? (where does it start and where finish it?)

 

MartinFalcon95_1-1669391724389.png

Thanks.

 

 

0 件の賞賛
返信

2,223件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Please read the "Table 4-1. System memory map" of S9KEA64Z64M20SF0RM, KEA64 Sub-Family Reference Manual - Reference Manual

Table 4-1. System memory map.png

0 件の賞賛
返信

2,334件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi MartinFalcon95,

Please refer to the discussion in KEA64 EEPROM

Hope it helps.


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 件の賞賛
返信