Open mrWheel opened 2 years ago
Hi,
This is my setup:
#define SDCARD_MISO (2) #define SDCARD_CS (13) #define SDCARD_SCLK (14) #define SDCARD_MOSI (15) #define _HAS_SDCARD_
Tried it with and without: SPIClass SDSPI(HSPI);
SPIClass SDSPI(HSPI);
Added this line of code:
Serial.printf("SD: %dG\r\n", SD.cardSize());
If I insert a 2GB microSD card setupSDCard() returns false and SD.cardSize() returns zero.
setupSDCard()
false
SD.cardSize()
I checked the defines with the silkscreen on my board and that all looks good/normal. The SD card works OK on other devices.
Do I have a faulty board?
Hi,
This is my setup:
Tried it with and without:
SPIClass SDSPI(HSPI);
Added this line of code:
If I insert a 2GB microSD card
setupSDCard()
returnsfalse
andSD.cardSize()
returns zero.I checked the defines with the silkscreen on my board and that all looks good/normal. The SD card works OK on other devices.
Do I have a faulty board?