2019-07-31 04:09 AM
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!
2019-07-31 04:24 AM
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.
2019-07-31 04:27 AM
Btw internal Flash embedded in MCUs are 'kindof' NOR-Flash.
2019-07-31 04:32 AM
Thanks alot for the fast replies!