Datalogger IoT 9DoF v12 can't find the correct SD CS pin

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);

It does look like 13 to me too https://cdn.sparkfun.com/assets/e/3/d/7/0/SparkFun_Datalogger_IoT_9DOF_Schematic_v11.pdf

Are the other aspects of the firmware working?