EEPROM in flash

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

EEPROM in flash

8,363 Views
ppcco
Contributor I
Hello, I need a routine wirted in c to emulate eeprom in flash memory, someone can help me?
 
Regards
Labels (1)
0 Kudos
Reply
8 Replies

2,002 Views
gregk
Contributor I
I see that many places it is called wear leveling instead of code leveling.

This Spansion document shows the functionality very well and could help anyone get started.
http://www.spansion.com/application_notes/22274.pdf
0 Kudos
Reply

2,002 Views
gregk
Contributor I
Load leveling is where the processor manages the number of write operations to a specific location. Actually here is an article on EDN about it.
http://www.elecdesign.com/Articles/Index.cfm?AD=1&ArticleID=12120

gk
0 Kudos
Reply

2,002 Views
irob
Contributor V
Ahh, yes ok. Funny, I'd never heard the term before but I'm actually doing that in my own code. It wasn't too bad to do by hand, depending on how many bytes you're storing.
0 Kudos
Reply

2,002 Views
gregk
Contributor I
I need to emulater EEPROM also. The previous document is nice but does not have code for load leveling. I would think if we had the source code for any of the 908s it would be easy to adapt to a specific device.

gk
0 Kudos
Reply

2,002 Views
irob
Contributor V


gregk wrote:
The previous document... does not have code for load leveling.



What do you mean by load leveling?
0 Kudos
Reply

2,002 Views
irob
Contributor V
I just posted over on another thread, but here it is again...

I just got some new info from my local distributor about updated Freescale docs:

AN1831 using MC68HC908 On-Chip FLASH Programming Routines
AN2874 Using M68HC908 ROM-Resident Routines
AN2874SW CodeWarrior 5 demo software for both the HC908QY4 and HC908LJ12

Looks promising...
0 Kudos
Reply

2,002 Views
irob
Contributor V
There is a C reference project written by Metrowerks to do this. It's for a different processor but it work.
0 Kudos
Reply

2,002 Views
yb
Contributor IV
Hi,
It depends on the 68HC08 familly you use...
Some ref. are embedded routines to do this (KX, ..).
 
 
0 Kudos
Reply