2015-07-31 02:05 AM
Hello,
I was wandering if there is a way to erase only one register in flash memory before writing to it instead of erasing the whole flash page which of course equals to loss of some previous written data? It's not nice to download the whole fash page to some adjuvant structures and then add just one register to it because it takes some time. Any ideas in this matter? Regards Dominik O.2015-08-05 03:56 AM
Hi oziom.dominik,
Referin to the (page 49), the flash memory can be erased only page by page or completely (Mass Erase). -Shahrzad-2015-08-05 04:49 AM
One technique is to write multiple copies of the structure, and them walk through them to find the most current one, and when sufficiently full, erase the page and start over. This will also help wear-leveling, and reduce erase cycles.
2015-08-05 07:10 AM
Thanks clive1 and shahrzad for the answer. I somehow made it out by creating a buffer imitating a flash page. Every time it fills up Im just copying it to flash page. O course it's using some of the RAM resources but I can afford that
Regards Dominik O.