cancel
Showing results for 
Search instead for 
Did you mean: 

Erase 1 byte in flash

info44
Associate II
Posted on April 04, 2003 at 11:37

Erase 1 byte in flash

4 REPLIES 4
info44
Associate II
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
yu-jun
Associate II
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.

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

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

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

Thank you , iy works...