use P.E to config EEEPROM for MC9S12

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

use P.E to config EEEPROM for MC9S12

ソリューションへジャンプ
1,316件の閲覧回数
lin_karl
Contributor I

is there any tutorial on how to config EEEPROM on P.E for MC9S12? for some reason I just can't get it work. 

for example, i want to create 256 byte for EE RAM and 3K for EE flash. so for my config, I type 106400 on Start Address under Address Range and Used size as C00. then under Emmulated EEPROM, I tupe 116 as D-Flash sector count and 1 for Buffer RAM sector count for emulated EEPROM.

 

   to test the code, I use codeWarrior generated functions, SetByte() and GetByte(). I type SetByte(0x106400, 0xCC); for some reason I keep getting error.

 

   I have the same problem with another generated functions, SetActByte().....

 

Does anyone know how to do it??

 

Thanks, 

 

Carl 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
802件の閲覧回数
RadekS
NXP Employee
NXP Employee

In attached zip file you can find two example codes in C for S12XEP100, table of valid ERPART/DFPART values and short description of emulated EEPROM.

It is not guide for P.E., but I hope that helps you.

There is EEEPROM driver for S12XS, S12P and S12HY:

https://www.freescale.com/webapp/Download?colCode=EEE_EML_DRV_S12

There are few application notes:

AN3490 Overview of the MC9S12XE Emulated EEPROM

http://www.freescale.com/files/microcontrollers/doc/app_note/AN3490.pdf

AN3743 Emulated EEPROM Quick Start Guide

http://www.freescale.com/files/microcontrollers/doc/app_note/AN3743.pdf

http://www.freescale.com/files/microcontrollers/doc/app_note/AN3743SW.zip

AN4483 Emulated EEPROM Routines for the S12P Family

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4483.pdf

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4483SW.zip


元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
802件の閲覧回数
checkers
Contributor III

I have the same question.

Is there no-one who can offer guidance?

0 件の賞賛
返信
803件の閲覧回数
RadekS
NXP Employee
NXP Employee

In attached zip file you can find two example codes in C for S12XEP100, table of valid ERPART/DFPART values and short description of emulated EEPROM.

It is not guide for P.E., but I hope that helps you.

There is EEEPROM driver for S12XS, S12P and S12HY:

https://www.freescale.com/webapp/Download?colCode=EEE_EML_DRV_S12

There are few application notes:

AN3490 Overview of the MC9S12XE Emulated EEPROM

http://www.freescale.com/files/microcontrollers/doc/app_note/AN3490.pdf

AN3743 Emulated EEPROM Quick Start Guide

http://www.freescale.com/files/microcontrollers/doc/app_note/AN3743.pdf

http://www.freescale.com/files/microcontrollers/doc/app_note/AN3743SW.zip

AN4483 Emulated EEPROM Routines for the S12P Family

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4483.pdf

http://www.freescale.com/files/microcontrollers/doc/app_note/AN4483SW.zip


0 件の賞賛
返信