I am using Arduino Uno with Arduino Xbee + SD Shield, The card i am using is SanDisk 2GB micro SD Card, The card appears to work fine when recently formatted in PC, but if you remove it once or twice from the shield put it in computer and then put back in arduino it gets unreadable by Arduino. Dosnt matter which code i run, the default SD Library sketch SDcardinfo also dont seem to initialize the card.... What could be the problem?
i had some error stuff when i pulled out the sd card while ardu was writing on it, maybe thats a problem too
i pulled in and out my oldschool 128 mb sd card like 20 times in the last 20min... and no problems, but i checked always on serial monitor when ardu finished writing to sd
i had a similar problem, but the reason was that i just have a really really cheap sd module which suxx, so i had to put some resistors into its circuit to make it work properly, but i doubt thats the case with your original shield.
does the sd formatter work, by fatlib?
once its unreadable for arduino, the computer still has no problems in reading the data?
QuickStart's output looks like this with the errorCode at the end:
SD initialization failed.
Do not reformat the card!
Is the card correctly inserted?
Is chipSelect set to the correct value?
Is there a wiring/soldering problem?
errorCode: 0x2, errorData: 0xff
It appears that your shield uses pin 4 as SD chip select.
Are you always using pin 4 as SD chip select in begin() and init() calls?
Some SD modules/shields almost work when the wrong chip select pin is used since pin 4 may float low most of the time.
Your errors are occurring at random times, not just at initialization time. This indicates use of the wrong CS pin, noise or bad SPI bus signals or a second SPI device interfering with the SD.
It does not appear that you have any other SPI devices.
Do you have anything connected to the SPI pins 10, 11, 12, 13?
Did you edit SdFormatter and define chipselect like this?