SdFat icon indicating copy to clipboard operation
SdFat copied to clipboard

begin() failed

Open Vamshi253 opened this issue 4 years ago • 1 comments

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

Vamshi253 avatar Feb 25 '21 11:02 Vamshi253

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.

greiman avatar Feb 25 '21 14:02 greiman