Closed vemanthchandrap closed 3 months ago
The default SPI has been allocated for Radio use. For SD cards, you must specify the SPI Pin explicitly, for example
#define SDCARD_MOSI 15
#define SDCARD_MISO 2
#define SDCARD_SCLK 14
#define SDCARD_CS 13
SPIClass SDSPI(HSPI);
void setup()
{
SDSPI.begin(SDCARD_SCLK, SDCARD_MISO, SDCARD_MOSI,);
if (!SD.begin(SDCARD_CS, SDSPI)) {
Serial.println("setupSDCard FAIL");
} else {
uint32_t cardSize = SD.cardSize() / (1024 * 1024);
Serial.print("setupSDCard PASS . SIZE = ");
Serial.print(cardSize / 1024.0);
Serial.println("GB");
}
}
In the serial monitor, I am getting this Result:
PowPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drSD card initialization failed!
DC4 : - Voltage: 1100 mV
DC5 : - Voltage: 1200 mV
ALDO1: - Voltage: 1800 mV
ALDO2: + Voltage: 3300 mV
ALDO3: + SD card initialization failed!
erKeyPressOffTime:4 Second
Started OLED
PowPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drSD card initialization failed!
SD card initialization failed!
I used 5V as VCC and the module is compatible.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Good morning, I have tried to insert my TTGO T-BEAM AXP2101 V1.2 with a SPI SD card module. I will send you the code and pinouts I used to connect. I have run the code and there are no errors. But in the result SD is not detected. I used a 16GB SD card.
PinOUTS: 5v-VCC, GND-GND, GPIO 4 - MISO, GPIO 13 - MOSI, GPIO 14 - SCK, GPIO 2 - CS
Can you check the problem and suggest the solution. Thank you