electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

SD card write destroys card


Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> SD card write destroys card
Author Message
aslm



Joined: 03 May 2002
Posts: 125
Helped: 5


Post09 Dec 2004 0:31   

SD card write destroys card


Hi Have a small question about SD cards, if anyone has worked with those...

I have written code to read write the card and a small FAT system is implemented.

I have no problem reading the cards and I can in almost all cases write to them as well. But in some rare ocations when I remove the card during a write the whole SD dies (users might do this so it must work).

The card reports as unformated when I try to read it on a windows PC and the most strange thing is that I cannot format it either. I have eaven tried to write to it byte by byte in my aplicaiton without succeding.

I would understand if the FAT or something gets messed up, but now I cant eaven accec the card. Any ideas about what I do wrong? The same has hapend to 3 SD cards in total until now.

All the communication is done in SPI mode so there is no "secure" part involved.

re Me
Back to top
Google
AdSense
Google Adsense




Post09 Dec 2004 0:31   

Ads




Back to top
greek



Joined: 10 Nov 2004
Posts: 63


Post19 Dec 2004 2:16   

SD card write destroys card


Which card are you using?
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing -> SD card write destroys card
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Sim card - read/write (1)
About MMC Card Read/Write (5)
How can read/write data from/to SD Card? (7)
whats the differnece between ATM CARD and a SMART CARD (4)
Write code for AT90S8515A+24C1024 Prussian Galaxy 4 card? (1)
How to read/write data from/to Multi-Media Card?? (11)
How to use C++ to read/write data to an ISA/PCI card? (9)
How to access SIM card for read and write? (3)
How to write c code to collect data using wifi card (1)
Examples of design MMC card and SD Card (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS