Hi,
For the NRF52832, I read that a number of write (per block) is limited before a forced erase of the page. Apparently, the amount of write is 181 times for a block of 512 Bytes. I would like to register some logs inside this flash. I create a header structure which contains in the first two blocks, two log indexes (for a circular buffer feature). Each bit of the index points on a log. An "1" ("default erase value") means that the log is empty, otherwise, is written.
So my flash memory structure will be like that :
Header page
Block #0 0x00000000, 0x0007FFFF, 0xFFFFFFFF, ..., 0xFFFFFFFF, (Index points on the log #45)
Block #1 0x0000FFFF, 0xFFFFFFFF, 0xFFFFFFFF, ..., 0xFFFFFFFF, (Index points on the log #16)
Other pages : Logs
My system will edit both indexes for each read/write operation, filling with "0" to point on the corresponding log. My question is : Is the number of write per block before erase fixed per flash write enable ?