Is it Possible to rewrite single word in flash

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

Is it Possible to rewrite single word in flash

1,964 次查看
MCF52233
Contributor III

Hi ,

 

is it possible to rewrite single word in flash??

 

Suppose we write single word already now we have to again

rewrite this word , so is there any way (might be) to rewrite the word

without erasing flash ??

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,171 次查看
FridgeFreezer
Senior Contributor I
If you have the space to spare, you can add a flag to the data that indicates it's no longer valid, and the code then looks at the next location in flash for a more recently written value. When the block is full, you need to erase and start again at the bottom.
0 项奖励
回复

1,171 次查看
tkvenki
Contributor III

Hi,

 

As far as I know, 

Flash bits can be changed from 1->0 but not from 0->1, without an Erase.

 

Our flash writing algorithm works as follows:

 

1. Map a sector to RAM.

2. Erase FLash

3. CHange Data in RAM image...

4. Write the RAM sector image to Flash ...

 

This turns out to be a very slow process.

 

If you have a better algorithm, let me know...

 

0 项奖励
回复

1,171 次查看
MCF52233
Contributor III

Hi ,

Thanks for ur response.

I also follow the same Algorithm n guessing if someone have better than this as use of this algorithm

uses more RAM which is very precious for me.

0 项奖励
回复