Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using EEPROM with a fixed address may cause excessive wear #1

Open
kueblc opened this issue Nov 7, 2023 · 1 comment
Open

Using EEPROM with a fixed address may cause excessive wear #1

kueblc opened this issue Nov 7, 2023 · 1 comment

Comments

@kueblc
Copy link

kueblc commented Nov 7, 2023

Using EEPROM with a fixed address may cause excessive wear on the flash and increases the risk of premature failure.

To reduce the wear on the flash through repeated erase and write cycles, I'd recommend using Espressif's nvs library. It is ideal for storing small pieces of frequently changing information, using an efficient append only strategy that avoids the need to erase the flash sector before writing. This is what the stock firmware uses to store the frame count.

One caveat, I do not believe the Arduino framework for the 8266 includes nvs. It is available for RTOS builds and may be possible to port to Arduino with shim for RTOS partition methods.

@sweetpi
Copy link

sweetpi commented Mar 29, 2024

Maybe https://github.com/jwrw/ESP_EEPROM would be a good and easy option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants