I have been working on a project with an Arduino Mega board coupled to a UTFT display shell and several different sensors. The scketch is quite long with around 3500 lines. Apparently there is no logic problem and the system works well and according to the information from IDE it is occupying 34% of program storage space and 59% of dynamic memory. No memory problem warning appears.
However, when I try to implement anything else in the system even if it occupies only 2 or 3% more in the dynamic memory, the system presents characteristic flaws of lack of memory, failing to function fully. My question is whether I can do a specific and direct test if I am really working on the memory limit. Is there any way to check this objectively and quantitatively?
Thanks for your help...