SD card problems, ethernet shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
tomn
 
Posts: 2
Joined: Sun Oct 10, 2010 4:25 pm

SD card problems, ethernet shield

Post by tomn »

I have recently bought the Adafruit ethernet shield, with the micro SD card slot. I bought a SanDisk 2Gb card.

Today, I installed the Sdfat library, and tried to run the Sdfatinfo sketch. It does not work, it says:

Code: Select all

card.init failed
SD error
errorCode: 1
errorData: 0
I searched several forums, but I get confused from all the different shields and versions and libraries.

Should the Adafruit ethernetshield (the one with the micro SD card slot) work with the Sdfat library Sdfatinfo sketch out of the box??

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: SD card problems, ethernet shield

Post by adafruit »


tomn
 
Posts: 2
Joined: Sun Oct 10, 2010 4:25 pm

Re: SD card problems, ethernet shield

Post by tomn »

Thank you thank you thank you. After changing the card.init line like described, it works.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”