I have a Arduino uno setup only with an SD card through SPI (i.e MISO, MOSI, SCK, SS). This works 100% correctly using a variety of cards.
Now I ran out of pins on my Arduino uno project and I decided to start using the ATmega1284P IC.
So I downloaded the Arduino "board" from JChristensen mighty-1284p. I then installed it into hardware folder.
My setup of the 1284P is on breadboard and includes the IC, 16MHz oscillatord, Vcc, Gnd, RST (pulled high). I communicate with the board using an FTDI board from eBay.
I boot-loaded the 1284P with my Arduino Uno. I am able to upload and run the blink application by adding a LED.
Anyhow, for this test I only have the SD card connected to the 1284P and I select the:
"maniacbug" Mighty 1284P 16MHz using optiboot board.
The example SD code that comes with this board uploads okay however the application fails intermittently. (actually more failure than success).
So If I run the SD->CardInfo sketch and connect my serial monitor and reset the power a few times, I get 9/10 times card initialization failed. but 1 in 10 it will give the card details. same with the other example sketches.
Does anyone have any suggestions of what to check?