It depends on application specific.
Me have f.e. Garland Switches, they toggled once or twice a day.
So, immediate state write to flash happens 1-2 times per day - any other period will wear flash more.
Can check those topics too:
Considering how cheap esp boards are, I dont really consider it an issue. Replacing a 2$ esp board isnt exactly on the same level as replacing 2000$ devices. Its not realistic have high expectations for a 2$ MCU.
Why don’t you want to write to flash? If it’s because fear of wearing it out, I think it’s a vastly overstated problem.
Here’s a quite from @OttoWinter himself:
So as a fundamental thing: Has anyone ever had the memory wear out? I hear a lot of people (IMO incorrectly) fearing about it, but never heard from a user actually experiencing this.
There’s also this answer on Stack Overflow,:
Anecdotal: I’ve had an ESP32 running for several years, saving to flash every hour, without any problem…
1 Like