Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

SD card Wear Leveling

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 469

newzealand.gif
PostPosted: Tue Jun 17, 2014 4:34 am    Post subject: SD card Wear Leveling Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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