Hi,
I'm having some issues getting the SD breakout board working consistently with an Arduino Mega ADK, the CardInfo example works on occasion (one of every 30 times or so).
Here's what I've got, that appears to work on occasion:
1. I have what I'm pretty certain is an authentic Arduino Mega ADK board
2. I'm using the latest version of the Arduino IDE /w the /libraries/SD replaced by the Adafruit github version
3. I've formatted the SD card to be Fat 16 using windows, following the directions in the Adafruit tutorial
4. I changed MEGA_SOFT_SPI from 0 to 1 in /SD/Utilities/Sd2Card.h
5. I've updated the pin assignments in that file as well to be:
#else // SOFTWARE_SPI
// define software SPI pins so Mega can use unmodified GPS Shield
/** SPI chip select pin */
uint8_t const SD_CHIP_SELECT_PIN = 53;
/** SPI Master Out Slave In pin */
uint8_t const SPI_MOSI_PIN = 51;
/** SPI Master In Slave Out pin */
uint8_t const SPI_MISO_PIN = 50;
/** SPI Clock pin */
uint8_t const SPI_SCK_PIN = 52;
#endif // SOFTWARE_SPI
And I've followed the wiring instructions on the Adafruit SD card tutorial for a MEGA card as well, and tried re-wiring it a few times to eliminate a connectivity problem.
One out of about every 30 times I try it CardInfo works, and I can hit the reset button on the Arduino and it will work again, I even had the Datalogger example working one time. But it appears random if it will work or not and usually it says it can't initialize the card.
Any ideas?
Thanks,
celer


