Skip to main content
Visitor II
July 31, 2019
Question

Does a (embedded) flash page gets fully erased every write operation?

  • July 31, 2019
  • 3 replies
  • 893 views

Good evening,

since NAND flash can be addressed pagewise only (I guess STM32 flash is NAND) and I am able to write for e.g. a single byte to the page, will the whole page gets erased during every write operation?

My presumption is that the page gets buffered somewhere, gets fully erased and the buffer containing the new data will be written back to it. But this would mean that the flash wear would be extremly high.

Would be great if someone has an answer and a reference to some kind of document. I couldn't find any.

Thanks alot!

    This topic has been closed for replies.

    3 replies

    Graduate II
    July 31, 2019

    No, flash write does not erase. You must activly erase the page or the sector before or write a pattern that only programs more bits from the erased state to teh programmed state.

    Technical Moderator
    July 31, 2019

    Btw internal Flash embedded in MCUs are 'kindof' NOR-Flash.

    Visitor II
    July 31, 2019

    Thanks alot for the fast replies!