Is it Possible to rewrite single word in flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is it Possible to rewrite single word in flash

1,962件の閲覧回数
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,169件の閲覧回数
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,169件の閲覧回数
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,169件の閲覧回数
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 件の賞賛
返信