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 CCS Technical Support

How are bad sectors in a MMC card detected ??

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



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

How are bad sectors in a MMC card detected ??
PostPosted: Sun May 17, 2009 6:16 am     Reply with quote

Hi,

I am using the CCS drivers for a MMC card. It works very well, except that a block write operation returns a MMC_EC_WRITE_ALWAYS_BUSY = 17 error.

I find that this happens after several blocks have been written.

Is it possible that some portions in the MMC are defective ??

Is there a way to detect this in advance ??

Note: I am directly reading and writing blocks to the MMC using the drivers.

thanks
arunb
asmallri



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

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

PostPosted: Sun May 17, 2009 6:30 am     Reply with quote

MMC and SD cards include embedded wear leveling and bad sector detection and remapping logic. Until you have exceeded the endurance of the media you will not see these areas. Once you have exceeded the endurance then yes this could explain what you are seeing.

If you are using relatively new media and are not continuously writing to the same blocks then more likely you have a implementation problem.
_________________
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