
Originally Posted by
KurtE
Just thought I would mention I again tried the SD Card list program (listfiles) External SPI reader works on both T3.2 and T4 (Sparkfun unit...)
Neither one will read the Samsung 32 EVO disk... Fails to initialize.
BUT if I build T4 with BUILTIN_SDCARD - it works with the EVO card...
Quick update here. I have been outputting some debug information in the code and output:
Code:
Initializing SD card...CardBegin Error: 12
SDFAT Cardbegin failed
initialization failed!
done!
Press any key to rerun
I believe that error code is:0X12,SD_CARD_ERROR_CMD58 - Read OCR register
Which in SdSpiCard.cpp there is code:
Code:
// if SD2 read OCR register to check for SDHC card
if (type() == SD_CARD_TYPE_SD2) {
if (cardCommand(CMD58, 0)) {
error(SD_CARD_ERROR_CMD58);
goto fail;
}
if ((spiReceive() & 0XC0) == 0XC0) {
So it looks like this command is failing...