The sketch I am developing is a data logger that reads barometeric pressure.
The Arduino is a Uno, and stacked on the Uno is the Adafruit logger plus real time clock.
The gadget is running now, logging barometeric pressure.
When compiled, the program reports:
Memory used 24976 bytes
Out of 32256 bytes, max. Leaving 7280 bytes free.
The compiler message doesn't seem to say I am running out of memory.
What is your comment, is 7280 bytes not enough?
Trying to learn more about the memory used, I switched on compile messages in the Arduino preferences.
The compile and upload messages tell a lot. I removed some unused variables and cleared away some compiler warnings.
So I pause here and ask you a question, can you show me a code example of printing out the address of a string variable? is there any way I can
create a couple of pointers that will tell me the exact memory address
of some of my data values? Are there any system memory variables that I can read? Can you show me any way to read the memory value when a function() has run and show me the instruction pointer or memory address right before the return; statement?
It looks like the avr-gcc library has a library and a function call, but I'd need a tutorial example to learn how to use it.
What I am trying to add is an LCD display. So far the display works and I have a pinout.
So for simplification, I leave the LCD disconnected and I uncomment the LCD library code one line at a time .
The software problem that gets me is the command that opens the SD card for writing always fails
when I uncomment the LCD library initialization instruction like this:
LiquidCrystal lcd(2,3,6,7,8,9); // lcd(RS,EN,D4,D5,D6,D7)
Thanks for the memory out comment. If I am out of memory well how do I print out the memory addresses of the last data items?