I'm trying to get the SEEED SD Card Shield to work with my ardunio mega 2560 and I'm not having any luck. Some of the example code won't compile from the get go giving random errors leading me to believe it doesn't have some library it needs the cardinfo script seems to run but even with a sandisk 2GB SD card in (the recommended on the SEEED wiki) it still reports the error.
"
Initializing SD card...initialization failed. Things to check:
* is a card is inserted?
* Is your wiring correct?
* did you change the chipSelect pin to match your shield or module?
"
Others, for example the QuickStart script, give a whole host of errors
"QuickStart:135: error: redefinition of 'const uint8_t spiSpeed'
QuickStart:5: error: 'const uint8_t spiSpeed' previously defined here
QuickStart:139: error: redefinition of 'Sd2Card card'
QuickStart:9: error: 'Sd2Card card' previously declared here
QuickStart:140: error: redefinition of 'SdVolume volume'
QuickStart:10: error: 'SdVolume volume' previously declared here
QuickStart:141: error: redefinition of 'SdFile root'
QuickStart:11: error: 'SdFile root' previously declared here
QuickStart:144: error: redefinition of 'ArduinoOutStream cout'
QuickStart:14: error: 'ArduinoOutStream cout' previously declared here
QuickStart:147: error: redefinition of 'char cinBuf [40]'
QuickStart:17: error: 'char cinBuf [40]' previously declared here
QuickStart:148: error: redefinition of 'ArduinoInStream cin'
QuickStart:18: error: 'ArduinoInStream cin' previously declared here
QuickStart:151: error: redefinition of 'int chipSelect'
QuickStart:21: error: 'int chipSelect' previously declared here
QuickStart.cpp: In function 'void cardOrSpeed()':
QuickStart:153: error: redefinition of 'void cardOrSpeed()'
QuickStart:23: error: 'void cardOrSpeed()' previously defined here
QuickStart.cpp: In function 'void reformatMsg()':
QuickStart:163: error: redefinition of 'void reformatMsg()'
QuickStart:33: error: 'void reformatMsg()' previously defined here
QuickStart.cpp: In function 'void setup()':
QuickStart:169: error: redefinition of 'void setup()'
QuickStart:39: error: 'void setup()' previously defined here
QuickStart.cpp: At global scope:
QuickStart:179: error: redefinition of 'bool firstTry'
QuickStart:52: error: 'bool firstTry' previously defined here
QuickStart.cpp: In function 'void loop()':
QuickStart:180: error: redefinition of 'void loop()'
QuickStart:53: error: 'void loop()' previously defined here
"
Note that I didn't edit the script any from the basic so I'm not sure what the problem is. I've already gone through all the things i can find on this subject including this wiki page
http://www.seeedstudio.com/wiki/SD_Card_Shield_V3.0 but I feel like I'm missing something really basic. The scripts I'd like to focus on are cardinfo and QuickStart since they are really basic and if we figure out whats wrong there it should fix the problems of the more complex programs. The downloads are on the page (
http://code.google.com/p/beta-lib/downloads/detail?name=SdFatBeta20120327.zip&can=2&q=) I'm going to keep messing around with it but if I figure something out I'll let you know.
edit: Had some 4am grammar issues in the post sorry about that.