SdFat
SdFat copied to clipboard
begin() failed
Hello Greiman,
I am using your sdfat library (SoftwareSPI) to read or write data to microSD card using Arduino mega ADK. I declared in the following way for softspi pins:
const uint8_t SD_CS_PIN = 22; const uint8_t SOFT_MISO_PIN = 25; const uint8_t SOFT_MOSI_PIN = 24; const uint8_t SOFT_SCK_PIN = 23;
I have executed SoftwareSpi example and have got the following error:
begin() failed Do not reformat the SD. No card, wrong chip select pin, or wiring error? SdError: 0X1,0X0
It says card reset not happened. All the connections are fine. Could you please help me with a suggestion on how to overcome this error?
Thanks, Vamshi
I can't help since I don't have your hardware.
It works on my ADK with those pins.
Here is the output:
Type any character to start
This line was printed using software SPI.
Done.