Go Down

Topic: SD->Files example on Diecimila? (Read 1 time) previous topic - next topic

johnwasser

I'm trying to run the Arduino 22 example SD->Files (creates and deletes files on an SD card.

Right at the top of setup() it says:

   Serial.begin(9600);
   Serial.print("Initializing SD card...");

The sketch uploads without error but never gets as far as sending that message. :(

I'm running on a Diecimila with optiboot.  The compile output says:

Binary sketch size:  11996 (of a 15360 byte maximum)

Does the SD library need more than 3364 bytes of headroom?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

johnwasser

The answer appears to be Yes, it's a memory size problem.  I commented out al but the first Serial.print() and the first message appears correctly.  Now I just need to reduce the memory impact of those strings...
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy