Hi,
Not a request for assistance, as I have fixed my problem.
My project, started 2 years ago, is for a CNC add-on to my bench drill.
It uses a Mega, an SD shield for automatic running (with commands from a text file), & a CNC shield.
A year ago, the auto run worked fine; no problem with the SD card.
After a lot of re-writing of various functions, I recently got around to re-doing the auto-run bit. Impossible to initialise the SD cards!
I spent yesterday searching for a solution, & at last discovered that I could not use the 64GB SD cards I bought recently, because my PC would not format them in FAT32.
I suggest putting an extra line in the SD card basic set-up example, along with "wiring OK?", "SD card inserted?", to ask if the SD card was set up with the correct format!
I see that there are other libraries (other than SD.h), but I don't need to investigate further, as my problem is fixed.
Regards,
Diksan