Posted: Tue Jun 17, 2014 4:34 am Post subject: SD card Wear Leveling
If you Google this, Mr google says that some SD mfs do wear leveling and some appear not to. I have been told that writing to the FAT is not wear level protected, and this makes me nervous because:
In a data logger, I write about 3000 bytes of data to a new file on an SD card every 15 minutes, then I connect to a server & download from the file. If the download is good, i erase the file. If not, I try again in 15 minutes.
This i believe results in 2 FAT writes every 15 minutes, or 70,000 per year.
It has occurred to me, that i could write one file for say a month, and simply append my data to it every 15 minutes. Then i would only have 1 FAT write each month.
The problem i for-see is once I find a block, download it, how do mark it as 'done' so I get to skip it next time. I could append a tag to it if it was successfully downloaded, but I would then need to troll through a months worth of data to find out which blocks to download. Not sure how fast that would be.
Thoughts anyone? _________________ Neil
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum