I’ve just tried the Artemis processor instead and tok the code for the SD from the logging board demo program as below
#include <SPI.h>
#include <SD.h>
const int chipSelect = 23; // The CS pin is DATA3 or 23 for the MicroMod Artemis Processor. Adjust for your processor if necessary.
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// see if the card is present and can be initialized:
if (!SD.begin(chipSelect)) {
Serial.println("Card failed, or not present");
// don't do anything more:
while (1);
}
Serial.println("card initialized.");
}
void loop() {
// put your main code here, to run repeatedly:
while(1);
}
It didn’t work and just printed the card failed message. I’ve also tried two different SD cards with different sizes so are there any more tests I can do on the board to check if the SD slot is OK or not? The SD slots are part of the board so you should only need the CS pin.
Bipman