I'm actually running into some problem on my MEGA2560 board.
I have a sketch which embeds Servo (IDE0022) lib, GLCD v3RC1 lib and a DHT11 lib (on which i have worked with Robtillart).
The problem is that i can't get the code running more than a few minutes.
I'm wondering if there is some useful debugging tools for my board (like using the JTAG present on the ATMEGA2560 chip) ?
Perhaps my problem is that the RAM is overwhelming and runs out of space.
In this case, is there a small part of code that could tell me what is the free amount of RAM in real-time ?
I tried to add some code to know what was the total free mem of my code running.
It seems that my problem doesn't come from RAM as the total free mem doesn't change from start state to stalled state.
Now, i'm just facing something which i don't know how to debug ...
Does other code have the same problem? If so you have a hardware issue.
Does the same code work with various parts commented out? Say don't call any library functions.
total free mem doesn't change from start state to stalled state.
How do you know what's happening in the "stalled" state? That implies that the program is running (otherwise how would you get a print of the RAM usage) just not doing what you expect.
simkard:
The problem is that i can't get the code running more than a few minutes.
Yes indeed. You need to clarify this statement. It sounds like the old "it isn't working" claim. If it's working enough to print out free RAM then it is doing something.