[FIXED] ARDUINO IDE 1.0 - SD card initializing failed

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
supercolli
 
Posts: 3
Joined: Tue May 10, 2011 6:01 am

[FIXED] ARDUINO IDE 1.0 - SD card initializing failed

Post by supercolli »

Hi,
here I am with a new trouble :)
My question regards the data logger shield mounted on an arduino mega.
I got installed on my pc two different versions of the arduino IDE, the 0022 and the new 1.0 .
I updated, on the arduino 1.0 libraries directory, the RTClib to the new version and it seems to work fine.
Now, with my new 1.0 IDE I managed to compile and upload on the arduino mega a sketch that it's checked to working good if loaded with the 0022 ide version.
The problem is that I can't initialize correctly the SD card with the same sketch that works good if loaded with the old IDE.
More specifically, I mean that, in the IDE 1.0 case, the "if (!SD.begin(10))" BANNED restitutes a TRUE.
Maybe have I some updates to made in the SD.h library?

thanks for the precious help!
Last edited by supercolli on Mon May 07, 2012 5:06 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: ARDUINO IDE 1.0 - SD card initializing failed

Post by adafruit_support_bill »

Did you modify Sd2Card.h for the mega? You will need to modify this line in the IDE 1.0 libraries as well.

Code: Select all

#define MEGA_SOFT_SPI 1

supercolli
 
Posts: 3
Joined: Tue May 10, 2011 6:01 am

Re: ARDUINO IDE 1.0 - SD card initializing failed

Post by supercolli »

Thank you, that solved my problem!

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

Return to “Arduino Shields from Adafruit”