Skip to main content
Visitor II
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

    info44Author
    Visitor II
    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
    Visitor II
    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.

    Visitor 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.

    info44Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 11:53

    Thank you , iy works...