did something change in Arduino 15 that would alter the memory footprint of sprintf or other functions?
i have some demo pachube code for the ethernet shield (http://community.pachube.com/?q=node/112
) which works fine up till Arduino 14, but on Arduino 15 i start getting errors that i presume are caused by running out of RAM.
working with an Arduino Diecimila on Arduino 15 i observed the following:
- if i include the following line
then the board will constantly freeze/reset, etc.
- if i replace pachube_data with something static no problem.
- if i try to do a hack using itoa same problems as sprintf
- if i use the original code, incl. sprintf, in Arduino 14 i have no problems.
however, the following code does
work fine, so sprintf is definitely OK in A15:
#include <stdio.h> // for function sprintf
of course it might be some other function in my code that has expanded, but since sprintf is usually so hungry i'm presuming it's the culprit.
incidentally, i have not been able to get the Mega to work with the basic Ethernet shield examples, and so have not yet been able to see how it works with larger RAM.