I need a way to identify what String() function or what piece of library code is messing up my development projects.
I am using Arduino 1.0.5 on Ubuntu Linux.
I am whipping along doing a couple of data logger projects. For each project, I add one new function at a time.
I get to the point where I have several include files like this:
#include <Wire.h> #include <RTClib.h> // Real time clock #include <Adafruit_Sensor.h> // Barometer #include <Adafruit_BMP085_U.h> // Barometer #include <SPI.h> // SD card #include <SD.h> // SD card // Libraries from LCD example //#include <OneWire.h> //#include <LiquidCrystal.h> /*
I am repeatedly running into problems where Serial.println(), appending “\n” to Strings, using long() type cast, declaring pinMode(pin9, OUTPUT), and invoking lcd() statements are either returning blank data or breaking SD.open().
So the question is: how do I trace the program execution, or how do I reorder the #include statements, or how do I put padding or a marker or harmless instructions on the stack so I can identify which library or which included class function or which code is failing to clean up the stack?
I request no comments from PaulS. Your comments are demoralizing, so do not offer your comments. Thanks.
The Arduino is a great community, fun platform and Open Source. Thanks again.