SD card failing to Initialize

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
arduinonewb13
 
Posts: 60
Joined: Sat Nov 16, 2013 8:48 pm

SD card failing to Initialize

Post by arduinonewb13 »

The SD card is not being initialized after uploading the CardInfo sketch.
The following error is produced:

"Initializing SD card...initialization failed. Things to check:
* is a card is inserted?
* Is your wiring correct?
* did you change the chipSelect pin to match your shield or module?"

The card is inserted and has been formatted by a microSD adapter.
Furthermore, the wiring is correct because I can take a picture.
As for the code, I've assigned the value of 4 to the chipSelect variable, and (as other forum members have done) added 'digitalWrite(10, HIGH)' after the line 'pinMode(10, OUTPUT)'.

I've had this code to work before, but now it isn't. Can anybody find out why? Any comments will be appreciated.

1chicagodave
 
Posts: 564
Joined: Wed Jun 19, 2013 3:35 am

Re: SD card failing to Initialize

Post by 1chicagodave »

At least you can take photos! ....just no saving them, eh? :?

Here's some good info about using SD cards w/ Arduino -
http://arduino.cc/en/Reference/SDCardNotes

How did you format the SD card? On Windows or Mac? Did you use 'official' format tool?
https://www.sdcard.org/downloads/formatter_4/
Can choose Windows or Mac download from menu on left of screen.

If none of that helps, could you share a little more information with us?

I think I remember seeing that you were using an Arduino Mega, Ethernet Shield (w/ SD), and the TTL camera from an earlier post. Is that correct? That's a lot of possible connections, variables, and code changes in play.

Could you please post the version of the CardInfo sketch you are having trouble with?

You can click the "Code" icon, then just paste between the tags that appear.
Code
Code
image.jpg (15.62 KiB) Viewed 290 times
And maybe either a clear photo or good description of which pins are connected to what?

Thanks!

User avatar
arduinonewb13
 
Posts: 60
Joined: Sat Nov 16, 2013 8:48 pm

Re: SD card failing to Initialize

Post by arduinonewb13 »

1chicagodave wrote:At least you can take photos! ....just no saving them, eh? :?

Here's some good info about using SD cards w/ Arduino -
http://arduino.cc/en/Reference/SDCardNotes

How did you format the SD card? On Windows or Mac? Did you use 'official' format tool?
https://www.sdcard.org/downloads/formatter_4/
Can choose Windows or Mac download from menu on left of screen.

If none of that helps, could you share a little more information with us?

I think I remember seeing that you were using an Arduino Mega, Ethernet Shield (w/ SD), and the TTL camera from an earlier post. Is that correct? That's a lot of possible connections, variables, and code changes in play.

Could you please post the version of the CardInfo sketch you are having trouble with?

You can click the "Code" icon, then just paste between the tags that appear.
image.jpg
Ok, thanks for responding!!!!! It works again. I re-downloaded the Arduino IDE. I will most definitely message you if any other errors occur, and yes, that list of equipment that you mentioned is correct.

THANKS AGAIN!!!

And maybe either a clear photo or good description of which pins are connected to what?

Thanks!

User avatar
arduinonewb13
 
Posts: 60
Joined: Sat Nov 16, 2013 8:48 pm

Re: SD card failing to Initialize

Post by arduinonewb13 »

I didn't mean to add your quote :lol: I'm still new to this!

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

Return to “Arduino”