I suspect issue might be with connections to the Arduino board. I don't have it "plugged in" instead I just ran jumper wires, so it's possible I missed one?
I have all 8 data pins (DAC and SD) connected (correctly), 1 ground wire, 5V and 1 Reset wire on the opposite side.
It's hard to diagnose problem due to Serial Monitor not running when Arduino powered on. As soon as I start Serial Monitor it starts resets and starts working. I've reformatted SD card with SDFormatter...
I've tried uncommenting while(1); in the Setup but it still freezes.
Any suggestions?
Here's my Setup just in case.
Code: Select all
void setup ()
{
ht1632_setup(); // Setup LED Deisplay
setBrightness(1); // Set Brightness
//randomSeed(analogRead(1));
Serial.begin(9600);
setSyncProvider(RTC.get); // the function to get the time from the RTC
if(timeStatus()!= BANNED)
Serial.println("Unable to sync with the RTC");
else
Serial.println("RTC has set the system time");
// Uncomment following two lines and modify to set time. After setting time, commend them and re-upload sketch
//setTime(13,04,0,9,11,12); // Set time on Arduino (hr,min,sec,day,month,yr). Use with RTC.set(now());
//RTC.set(now()); // Write Time data to RTC Chip. Use with previous command
analogReference(EXTERNAL); // Set reference voltage check to 3.3 V for Temperature measuring
// Wave Shield init
// if (!card.init(true)) { //play with 4 MHz spi if 8MHz isn't working for you
if (!card.init()) { //play with 8 MHz spi (default faster!)
putstring_nl("Card init. failed!"); // Something went wrong, lets print out why
sdErrorCheck();
while(1); // then 'halt' - do nothing!
}
// enable optimize read - some cards may timeout. Disable if you're having problems
card.partialBlockRead(true);
// Now we will look for a FAT partition!
uint8_t part;
for (part = 0; part < 5; part++) { // we have up to 5 slots to look in
if (vol.init(card, part))
break; // we found one, lets bail
}
if (part == 5) { // if we ended up not finding one :(
putstring_nl("No valid FAT partition!");
sdErrorCheck(); // Something went wrong, lets print out why
while(1); // then 'halt' - do nothing!
}
// Lets tell the user about what we found
putstring("Using partition ");
Serial.print(part, DEC);
putstring(", type is FAT");
Serial.println(vol.fatType(),DEC); // FAT16 or FAT32?
// Try to open the root directory
if (!root.openRoot(vol)) {
putstring_nl("Can't open root dir!"); // Something went wrong,
while(1); // then 'halt' - do nothing!
}
// Whew! We got past the tough parts.
putstring_nl("Ready!");
}