Help needed to get the SD card reader working

Hi

I'm trying to get the SD card reader that follows with the itead studio 2.8" display to work but I'm failing . I'm using the ITDB02 arduino MEGA shield 2.1 to connect the display to the arduino due. The display and touch functions are working ok, but any attempt to initialize the sd card in the sd-reader fails!!
I had tried the sdfat examples with all of the possible outputs but still i'm unable to get the sd-card initialized. I tried with 2 different sd cards (formated as FAT and FAT32) that I know are ok.

the code i'm using looks like this:

pinMode(sd_cs, OUTPUT);
digitalWrite(sd_cs, LOW);
if ( !SD.begin(sd_cs) )
Serial.println("SD card initialization failed");

I'm using the latest version of the sdFat library and the 1.5.3 IDE

I guess I'm missing some very basic here (because a lot of people are using sd cards without any problems) but I have no idea what it can be, so, please, is there any one with a similar configuration that can point out what the problem may be?

Hello pepito11,
Have you tried as follows:

pinMode(sd_cs, OUTPUT);
//digitalWrite(sd_cs, LOW);
if ( !SD.begin(sd_cs) ) 
       Serial.println("SD card initialization failed");

Regards.

Yes, I had tried that but no differences in the result: the initialization is failing!

try this and use IDE 1.5:

void setup()
{

Serial.begin(9600); // for debugging

// initialize SD card
Serial.println("Initializing SD card...");
if (!SD.begin(4)) {
Serial.println("ERROR - SD card initialization failed!");
return; // init failed
}
Serial.println("SUCCESS - SD card initialized.");
}