ethernet shield2 is sd library the same?

Hi.

Just bough a ethernet shiel2 and tried it. I change the library in the core and have been able to run server example. But I can't read from my sd card. It was working on the old shield. In the card info example, it return:

Initializing SD card...Wiring is correct and a card is present.

Card type: SDHC
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card

I wonder if I have to change the SD library as well.

Thanks

Nitrof

I wonder if I have to change the SD library as well.

No. That hardware has not changed.

Insure you are disabling the WIZnet IC before calling SD.begin().
pinMode(10, HIGH);

SurferTim:
Insure you are disabling the WIZnet IC before calling SD.begin().
pinMode(10, HIGH);

Or, digitalWrite(10, HIGH);

Also, make sure that you have a pinMode(10, OUTPUT); statement in the stup() function, before the digitalWrite() call.

PaulS is correct. It should have been digitalWrite(10, HIGH).

You don’t need a pinMode call though. The pinMode call will cause the code to fail on a Due.

still buggie... don't know what to try.... :confused:

don't know what to try

Try posting your code. Try telling us which Arduino you have. Try telling us how you have formatted the card. Try telling us what the code actually does.

try on uno r3 and DUE.
with sd card info example, adding digitalWrite(10,HIGH) to setup.

sd card 8gig class10 (was working on old shield).

card have been format with sdformater as tell on furum.

return on serial:

Initializing SD card...Wiring is correct and a card is present.

Card type: SDHC
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card

ok… real strange… I’m ubable to make my old ethernet sheild read SD card… what do I forget ???

using IDE 1.8.0 UNO R3 or DUE, ethernet Shield W5100. I’m still able to read my card from my computer, It was working before on arduino. I try with other SD card with no succes…

#include <SD.h>
#include <SPI.h>
const int SDC_PIN = 4;

void setup() {
  Serial.begin(115200);
  digitalWrite(10, HIGH);

  Serial.println("Startup !!!");
  Serial.print("Initializing SD card...");
  pinMode(SDC_PIN, OUTPUT);  //make sure that the default chip select pin is set to output
  digitalWrite(SDC_PIN, HIGH);
  delay(1);
  
  if (!SD.begin(SDC_PIN)) {
    Serial.println("Card failed, or not present");
    return;
  }
  Serial.println("card initialized.");
  delay(1);
  delay(10);
}

void loop() {


}

I rollback SD library to version 1.0.9 and now it work everywhere...
Don't know if I,m the only one experimenting a bug with 1.1.0...

Regards

Nitrof