• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Storing permanent data

Q&A Forum › Category: ESP32 › Storing permanent data
0 Vote Up Vote Down
matt asked 4 years ago

Hi, I was able to implement the code in your blog to remember the state of a pin, but I’m concerned about the limited write operations. Is there any alternative to this method? Does SPIFFS works the same way regarding this issue? Is there any library or method to use wear leveling?
Thanks in advance 

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi. The ESP32 flash memory can handle a minimum of 100,000 program/erase cycles.
You can read from flash memory as many times as you want. So, instead of writing a value in a certain position, you can read that position first, and only write if the new value is different (update the value).
The SPIFFS has a limit write/erase cycle. It should be used to save data that will not change frequently. You may find useful the following article about estimated SPIFFS lifetime:
https://github.com/pellepl/spiffs/wiki/FAQ#how-long-will-my-spi-flash-live
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.