This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

snv - Simple None-Volatile Memory - Item Length

Hi,

I see that Items is available on 0x80 to 0xEF (128 different Items).

what is the length of every one of them that we can store there?

for example on 0x80, can I store 200 bytes? what is the maximum?

and if I try to write more than maximum, is this overlap with neighbors?

Thanks.

  • Hi,

    The items will be placed consecutively on a 2kB page. The length is limited by uint8. The items will not overlap, but keep in mind that it's easy to fill up the NV memory if you try.

    On each disconnect, the usage (including invalidated entries) is checked against a threshold, and if above the threshold, all the valid entries are copied over to an inactive (of 2) page, and the entire old page is erased.

    This can also happen during writes if there is no more SNV space on the active page, and takes enough time (20ms+) that the connection can drop.

    Best regards,
    Aslak