EEPROM in flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

EEPROM in flash

8,364 次查看
ppcco
Contributor I
Hello, I need a routine wirted in c to emulate eeprom in flash memory, someone can help me?
 
Regards
标签 (1)
0 项奖励
回复
8 回复数

2,003 次查看
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 项奖励
回复

2,003 次查看
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 项奖励
回复

2,003 次查看
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 项奖励
回复

2,003 次查看
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 项奖励
回复

2,003 次查看
irob
Contributor V


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



What do you mean by load leveling?
0 项奖励
回复

2,003 次查看
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 项奖励
回复

2,003 次查看
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 项奖励
回复

2,003 次查看
yb
Contributor IV
Hi,
It depends on the 68HC08 familly you use...
Some ref. are embedded routines to do this (KX, ..).
 
 
0 项奖励
回复