So i am writing my own firmware since the stock one is quite limited and is non-open-source. I’ve tried pins 4, 5, 13, 38 and none of them are able to initialise SD card.
#define SD_CS_PIN 13
if (!SD.begin(SD_CS_PIN)) {
Serial.println(“SD Card initialization failed!”);
return;
}
Serial.println(“SD Card initialized.”);
this is pretty much the code i use for SD.begin();
from the schematic i see that dat3 is connected to IOA13, but it does not work
I’ve tried this code in front of SD.begin:
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
delay(1000);
Still does not work at all. I also tried putting SPI pins manually:
SPI.begin(18, 19, 23, SD_CS_PIN);