Connect it to an I/O pin and make sure it is correctly defined and used in the code
martinayotte wrote:Hi Joshua,
My SDCard is formatted in FAT16.
Also, since I have a identical adapter attached on an STM32 MiniMaple, I've done some tests there too, it is actually working, I'm able to do a listDir() and fileRead().
Since there is only this SDCard adaptor on the SPI bus, I've tied the CS pin of the adaptor directly to GND.
On ESP, what look strange is the timing of the MISO, which seem to be shorter than the CLK, at least for the first transaction (see attached image).
Also, once in a while, I'm also getting the watchdog triggered, which is a bit scary.
The sketch is CardInfo/listfFiles/readwrite example merge together, but it doesn't even get thru the card.init()
EDIT : I've started adding debug traces in the library, and it failed with the timeout in the following loop :Code: Select allwhile ((status_ = cardAcmd(ACMD41, arg)) != R1_READY_STATE) {