I am trying to compile and upload the code in Arduino UNO board:
But I am getting below error. How do I solve this one:
Arduino: 1.5.6-r2 (Windows XP), Board: "Arduino Uno"
Sketch uses 39,418 bytes (122%) of program storage space. Maximum is 32,256 bytes.
Global variables use 370 bytes (18%) of dynamic memory, leaving 1,678 bytes for local variables. Maximum is 2,048 bytes.
processing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
at processing.app.Sketch.size(Sketch.java:1676)
at processing.app.Sketch.build(Sketch.java:1590)
at processing.app.Sketch.exportApplet(Sketch.java:1611)
at processing.app.Sketch.exportApplet(Sketch.java:1597)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2397)
at java.lang.Thread.run(Unknown Source)
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Looks like you have two options: 1) find a way to recode the program to reduce the code size by more than 22% (in most cases, not easy), or 2) use an Arduino that has more memory (e.g., an ATMega2560).
I tried commenting a lot of code but still I get the same issue .. the final hex file is just very large that only a small lines of code if compiled with UTFT library works .