Skip to main content
info44
Associate III
April 4, 2003
Question

Erase 1 byte in flash

  • April 4, 2003
  • 4 replies
  • 860 views
Posted on April 04, 2003 at 11:37

Erase 1 byte in flash

This topic has been closed for replies.

4 replies

info44
info44Author
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:53

Is there a solution to erase one byte in the flash in order to reprogram it with a new value? I try to use it as an eeprom and i don't want to erase all the block to reprogram it

Thanks,

Sebastien
info44
info44Author
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:53

Thank you , iy works...

joseph2399
Associate II
May 17, 2011
Posted on May 17, 2011 at 11:53

Yes, you can update one byte at a time using the attached EEPROM emulation code.

yu-jun
Associate
May 17, 2011
Posted on May 17, 2011 at 11:53

You can't erase a byte in the flash, because a block can be erase in the flash.

There is a idea to erase a byte:

1. you copy the block to RAM

2. erase the block

3. change the byte which you want to erase.

4. write them to the block.