Storing 4-10 bytes in flash multiple times on internal ESP Pico memory

Avi_HW_Eng
Posts: 2
Joined: Thu Mar 02, 2023 1:19 pm

Storing 4-10 bytes in flash multiple times on internal ESP Pico memory

Postby Avi_HW_Eng » Sun May 12, 2024 1:45 pm

Hello,
I want to store application data (10-20 bytes) during runtime in flash, multiple times, so it mimics EEPROM.
is there any library that writs data to flash while keeping writes-per-cell within limits (using a round -robin mechanism for example) ?
Many thanks in advance!!!
Avi

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: Storing 4-10 bytes in flash multiple times on internal ESP Pico memory

Postby ESP_Sprite » Mon May 13, 2024 1:50 am

In ESP-IDF, NVS is developed specifically for that purpose. If you use Arduino, you can use the Preferences library which builds on top of NVS on ESP32 chips.

Who is online

Users browsing this forum: No registered users and 35 guests