Skip to content
Discussion options

You must be logged in to vote

As @enaon says, the Storage module (which is what's used for reading/writing files) has wear levelling. This is done by 'journalling' - it starts at the beginning of flash, and works through to the end - if you update a file, it just marks the old version as deleted and then writes a new one. When flash gets full, it does a 'compact' which takes a while but gets rid of all the deleted files.

So you have 8MB flash, with as @enaon says 100,000 cycles. If you blindly write 100 byte files (with a 32 byte header), that allows you to write the file 8000000*100000/(100+32) = 6 billion times before approaching the minimum supported by the flash chip.

So writing weather.json every hour would give …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RKBoss6
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants