Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
EEPROM - Simi - Jan 17 23:27:46 2008
friends,
i am working in mc9s12dj256 microcontroller for writing eeprom. i am new to this
microcontroller.i tried to write the eeprom in this directly but its not working so now i
tried to write through BDM.if you have any data related to my project please share with
me
juna
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Scanning of this message and addition of this footer is performed
by E-mail Content Filter Software at ADA in conjunction with McAfee
Virus detection software
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[Non-text portions of this message have been removed]

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Re: EEPROM - "smith.jeff28" - Jan 18 11:38:14 2008
First, be aware that debuggers are often configured so that EEPROM is
ROM, meaning they don't update in real time.
Second, you can't just write to the EEPROM.
See this sample code:
http://freescalemcu.com/samples/EEPromBurn.zip
And you should review:
http://freescalemcu.com/samples/S12EETS4KV2.pdf
--- In 6...@yahoogroups.com, "Simi"
wrote:
>
> friends,
> i am working in mc9s12dj256 microcontroller for writing eeprom. i am
new to this microcontroller.i tried to write the eeprom in this directly
but its not working so now i tried to write through BDM.if you have any
data related to my project please share with me
>
> juna
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _
>
> Scanning of this message and addition of this footer is performed
> by E-mail Content Filter Software at ADA in conjunction with McAfee
> Virus detection software
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
> [Non-text portions of this message have been removed]
>

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )Re: EEPROM - "John Hartman (NoICE)" - Jan 18 11:50:47 2008
>i am working in mc9s12dj256 microcontroller for writing eeprom. i am
>new to this microcontroller.i tried to write the eeprom in this
>directly but its not working so now i tried to write through BDM.if
>you have any data related to my project please share with
When you say "write eeprom directly", it you mean
STAA EEPROM_address
that won't work, whether you do it from the HC12 or via BDM.
To write to the EEPROM you must follow the programming steps shown in
the datasheet. The main datasheet will probably refer you to "EE...
Block User Guide". That pdf shows how to erase and program the EEPROM.
Some Google searching should find some assembly-language or C
functions to do this.
Best regards, John Hartman
NoICE Debugging Tools
http://www.noicedebugger.com
[Non-text portions of this message have been removed]

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )