Shifting Plattforms -> From Arduino DUE to Intel Gallileo

Hello,

for performance tests, I want to move my project, which I have developed on the Arduino DUE to the Intel Gallileo...

Well, the problem is now the SD-Shield...

For some reasons the SD shield wont work on the Intel Gallileo. I have tested this with:

a) Arduino Ethernet Shield
b) seedstudio SD Card Shield v4.1
c) seedstudio SD Card Shield v3.1
d) SD Shield v2.0 itead studio

Jet I did not modify the code, which was working on the Arduino DUE...

I'll post the SD card related code - maybe someone has an idea what I am doing wrong.

This is the librarys and the chip select pin:

// Bibliothek für den SPI Bus importieren.
#include <SPI.h>

// Bibliothek für die SD-Karte importieren.
#include <SD.h>

///////////////////////////
// Pins für die SD-Karte //
///////////////////////////

// Pin für die SD-Bibliothek.
const int SDCard_chipSelect = 4;

This is the actual function to init the SD card:
(On the DUE it works fine, on the Intel Gallileo it will report the error...)

// SD-Karte initialisieren.
void MyInitSDCard() {
  
  // Prüfen ob die SD-Karte gefunden wurde.
  if (!SD.begin(SDCard_chipSelect)) {
   
    // Nichts machen.
    while(true) {
      
      // Mitteilung, dass die SD-Karte nicht funktioniert.
      Serial.println("sd card error...");
     
      // Delay.
      delay(5000);  
    }
  }
  else {
   
    // Mitteilung, dass die SD-Karte geprüft wurde.                                                                                                                                                                                                                                                                                                                                                                                                                                                  
    Serial.println("B"); 
  }
}

I know that the Intel Gallileo has a sd card slot on bord - however I do need the SD Shield for my project.

Maybe the onboard SD Card causes the problem....

Please help!

The Gallieo has very slow I/O and I am not sure the SPI libary works because the hardware is diffrent.

By the way, I just tried the Arduino datalogger example: http://arduino.cc/en/Tutorial/Datalogger

Its the same issue, the SD card wont initialize on the Intel Gallileo.

Hello Mike,

well Intel advertises it...

I just cant imagine, that a extremely basic and absolutely neccesary thing like the SD card functinality is not working on the Gallileo...

They advertise the Gallileo to be complient with almost all of the existing shields !?!?!??!? :disappointed_relieved:

You might need to do something like below if some other hardware is also using SD card pins.

  // disable w5100 while setting up SD
  pinMode(10,OUTPUT);
  digitalWrite(10,HIGH);
  Serial.print("Starting SD..");
  if(!SD.begin(4)) Serial.println("failed");
  else Serial.println("ok");

Hello zoomkat,

I just tryed your code - but it failes :blush:

thx anyway!

They advertise the Gallileo to be complient with almost all of the existing shields

Hardware compatiable maybe, but even that is a bit of a lie given the slow I/O speed.
But software compatable it can never be because the underlying hardware is different.
In the UK we have the "Trades Discription Act" which means they can't lie in an advert, so they can't say that here.

Andreas1984:
well Intel advertises it...

At least you know who to complain to ...

...R

Hmm, I have more and more a feeling as I have wasted my money on the Gallileo...

Anyhow, I have posted this topic on the corresponding Intel Forum, will see what those Intel people say regarding this topic: https://communities.intel.com/message/234798#234798

thx.