Is it Possible to rewrite single word in flash

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

Is it Possible to rewrite single word in flash

1,450 Views
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 ??

Labels (1)
0 Kudos
Reply
3 Replies

657 Views
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 Kudos
Reply

657 Views
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 Kudos
Reply

657 Views
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 Kudos
Reply