Saving Information in Flash-Memory without Erasing Cycle
Hello,
I want to realize a startup-counter in a STM32L0xxx MCU.
This means a counter which counts how often the MCU is doing a power fail and restart for the whole life.
I want to save the actual counter-value in the flash memory.
But I don't want to kill the flash-memory-cells with more than 10k write an erase-cycles.
To solve this I want to save the counter-value without erasing-cycles:
Is it possible to write to a flash-cell more than one time without an erase cycle if I only want to *set* the bits? I know it is not possible to clear a bit.
A flash page has a capacity of 128Bytes. If I use every single bit for a counter-step, I can save 128x8=1024 counter-steps without an erase-cycle.
I've tested this, but I get some strange effects.
Is there a reason for this effects?
Maybe multi-level-flash-cells or ECC-correction?
Best regards
Andreas Fecht
