Pages: [1]   Go Down
Author Topic: SD->Files example on Diecimila?  (Read 967 times)
0 Members and 1 Guest are viewing this topic.
Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. smiley-sad

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?
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: