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
解決済! 解決策の投稿を見る。
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
I have the same question.
Is there no-one who can offer guidance?
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