use P.E to config EEEPROM for MC9S12

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

use P.E to config EEEPROM for MC9S12

Jump to solution
1,083 Views
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 

Labels (1)
Tags (1)
0 Kudos
1 Solution
569 Views
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


View solution in original post

0 Kudos
2 Replies
569 Views
checkers
Contributor III

I have the same question.

Is there no-one who can offer guidance?

0 Kudos
570 Views
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 Kudos