CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

FAT table MMC/SD durable when logging in SPI mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jimmy Lee
Guest







FAT table MMC/SD durable when logging in SPI mode
PostPosted: Sun Sep 24, 2006 11:41 am     Reply with quote

Hi,
I have a data logging project with MMC/SD card using SPI mode with FAT16. The block is set to 512 bytes. On average, one block of data will be logged on the card for every minute.
Is true that, each block of data writing into the card, the FAT16 table will be updated? if this is true, then the FAT table will burn out very soon, about 70 days ( assume that 100 000 write-cycles for MMC/SD card).

Is there a way we can prolong the durability of the FAT table on the card?

Can anyone commment on this?

Thank you in advance,
Jimmy
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sun Sep 24, 2006 1:28 pm     Reply with quote

When and how often the FAT16 table is updated will depend on your FAT16 driver. You didn't mention who is the supplier of your FAT16 driver so there is no way we can tell something about it's behaviour.

A general working trick to avoid the updates to the FAT16 table is to create one or more very large files just once. Following updates to the contents of these files will not affect the FAT16 table as long as you don't change the size of the files.
Guest








PostPosted: Tue Sep 26, 2006 12:04 am     Reply with quote

Hi,
I got the FAT16 MMC/SD driver from Progressive Resources LLC.
Thank for your reply.
Jimmy
asmallri



Joined: 12 Aug 2004
Posts: 1630
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Sep 26, 2006 2:17 am     Reply with quote

Don't forget SD cards implement "wear leveling" swapping out dud blocks. If you are only performing heaving writing on a small area, as opposed to over the entire media, then wear leveling will increase the effective endurance.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group