Go Down

Topic: Sketch size small to Thingspeak and SD card writing together :( (Read 701 times) previous topic - next topic

vespapierre

ok, I have attached the full code, sorry. Arduino 1.0.1 says sketch size is 35515 byte and maximum is 30720.

billroy

If you cut way, way down on the Serial.print() diagnostics I bet it will fit.

Make a copy and slice away on the copy.  Let us know how you do.  At least it is a fast thing to try.

You'll want to learn about the F() macro for any remaining printing, because ram pressure is scheduled to be your next big worry.

-br

vespapierre

You mean I should delete the serial.print()-s ? Ok, I will do it now!

vespapierre

I have removed and commented out all the serial.print()-s. Size is now 33684 and maximum is 30720...What can I do more?
Attached the sketch again.

billroy

Thanks for the update.  You did some good cutting.  I took a hard look and I don't see any further reductions that would make up the 3k difference.  I'm surprised. 

You are wedged between two big libraries.  An Arduino Mega would solve your flash problem, as well as the ram problems you haven't run into yet.

-br


Go Up