Pages: [1]   Go Down
Author Topic: Cant initialize SD card on Mega Pro 3.3V  (Read 853 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a sparkfun Mega Pro 3.3V(https://www.sparkfun.com/products/10744) and a sparkfun SD breakout board (https://www.sparkfun.com/products/544). I followed the tutorial on adafruit to connect my 2gb SD card to the arduino, and used their SD library,  But I always get "Initialization Failed" in the serial monitor. I verified the breakout board is getting power and all pins connect to the proper pins on the arduino, but I still get this error. The card was formatted to FAT16 by the formatting tool adafruit linked to. I read online that you have to change a line on the "Sd2card.h" file. I changed
Code:
#define MEGA_SOFT_SPI 0
to
Code:
#define MEGA_SOFT_SPI 1)
and it still doesn't work. I also edited the pin numbers on the "Cardinfo" code to
Code:
pinMode(53, OUTPUT);   const int chipSelect = 53;


 What else can I try?
Logged

UK
Offline Offline
Full Member
***
Karma: 0
Posts: 101
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You say you followed 'tutorial on adafruit'.... and 'all pins connect to proper pins on arduino'........ The adafruit SD libraries work fine....


Confirm your connections thus :-


* Microsd_mega.JPG (61.12 KB, 892x607 - viewed 14 times.)

* cardinfo output.JPG (28.6 KB, 597x347 - viewed 17 times.)
« Last Edit: January 24, 2013, 09:51:42 pm by ghlawrence2000 » Logged

Pages: [1]   Go Up
Jump to: