How to get board reset count

I did not write that the KVStore do it, I wrote it is possible to achive it via the KVStore.
The KVStore let you store a value in the on-chip flashmemory and thank to this you will able to read the value in the next start up, after power down.

So it can works as…
Board start -> init KVS -> read KEY -> print the value -> increment the value -> re-write KEY -> rest of program

Simplest examples than official is

BR, Jan

2 Likes