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!