Good morning,
I am working with an Esp32S3 and I have created a NVS in order to store datas.
In this NVS, I have declared an etry, let's call it "Entry1".
Its type is uint16.
I would like to know how much time I can write something in this entry.
Is there a max write number due to the fact that the entry is written in flash ?
Do you have any idea please ?
Thank you for your ehlp,
Best regards,
Thomas TRUILHE
Esp32S3 : How much time can I write an entry in NVS ?
-
- Posts: 229
- Joined: Thu Jul 14, 2022 5:15 am
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Esp32S3 : How much time can I write an entry in NVS ?
NVS uses a form of wear-levelling, so the number should be about
(Size of NVS partion)/(size of entry in flash, inkl. metadata) * (flash max writes),
where flash max writes is commonly spec'd as 100000 erase/writes.
(Size of NVS partion)/(size of entry in flash, inkl. metadata) * (flash max writes),
where flash max writes is commonly spec'd as 100000 erase/writes.
-
- Posts: 229
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : How much time can I write an entry in NVS ?
So,
I my partition is 0x19000 = 102400 bytes.
And if my entry takes 3 entries positions in NVS (Because it is an array of bytes).
Do you think the result should be :
1) (102400/32) * 100000 = 320000000 => Here because an entry is 32 bytes.
2) (102400/96) * 100000 = 106600000 => Here because an entry is 32 bytes and my entry takes 3 positions.
What is the correct result please ?
Thank you,
I my partition is 0x19000 = 102400 bytes.
And if my entry takes 3 entries positions in NVS (Because it is an array of bytes).
Do you think the result should be :
1) (102400/32) * 100000 = 320000000 => Here because an entry is 32 bytes.
2) (102400/96) * 100000 = 106600000 => Here because an entry is 32 bytes and my entry takes 3 positions.
What is the correct result please ?
Thank you,
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Esp32S3 : How much time can I write an entry in NVS ?
https://docs.espressif.com/projects/esp ... e-of-entryIts type is uint16.
So one entry per integer.For values of primitive types (currently integers from 1 to 8 bytes long), entry holds one key-value pair.
Who is online
Users browsing this forum: No registered users and 89 guests