Hi,
I have some spare flash in MK22FX512AVLL12 and I would like to use it for non-volatile monotonous counter implementation. The counter counts some events. When event occurs, it increments by one. The counter implementation should be aware of flash wear, the max. number of events to occur during device lifetime is 5 milions. The implementation fo the counter should use min. amount of flash memory.
Single programming command of MK22FX512AVLL12 can program 4 bytes data at 8 bytes memory boundary.
Thanks for any advise.