Calculator Community > The Axe Parser Project

Calling Brave Axe Warriors!

<< < (18/18)

Builderboy:
Would it be possible to merely overwrite the data instead of deleting it, defragmenting, then writing it?

Quigibo:
No, the way flash works is that all the data has to be cleared at the same time, or at least in very large chunks.  After that, the entire page is 1s in binary.  From then on, you can only write 0's over the 1's and you wouldn't be able to write a 1 over a 0 since the memory is kind of "one way".  Think about it like the voltage potential is put high and it is easy to put it low (by writing a 0) but it can't be put high again unless the entire chip is put high.

Its really interesting actually.  There is a good article on Wikipedia http://en.wikipedia.org/wiki/Flash_memory#Block_erasure

Builderboy:
Ah i see, thats too bad.  Oh well, with the benefit of Application compiling, its sure worth the tiny wait ^^

ztrumpet:

--- Quote from: Quigibo on July 02, 2010, 01:25:18 am ---No, the way flash works is that all the data has to be cleared at the same time, or at least in very large chunks.  After that, the entire page is 1s in binary.  From then on, you can only write 0's over the 1's and you wouldn't be able to write a 1 over a 0 since the memory is kind of "one way".  Think about it like the voltage potential is put high and it is easy to put it low (by writing a 0) but it can't be put high again unless the entire chip is put high.

Its really interesting actually.  There is a good article on Wikipedia http://en.wikipedia.org/wiki/Flash_memory#Block_erasure

--- End quote ---
Oh!  That makes sense now!  Thanks for the great explanation. ;D

Navigation

[0] Message Index

[*] Previous page

Go to full version