Using win7 and arduino 1.6.7 IDE I have a rather large CONST array of chars and upon compile using atmega2560, it fails and says:
Sketch uses 11,216 bytes (4%) of program storage space. Maximum is 253,952 bytes. Global variables use 8,414 bytes (102%) of dynamic memory, leaving -222 bytes for local variables. Maximum is 8,192 bytes. processing.app.debug.RunnerException: Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint. at cc.arduino.Compiler.size(Compiler.java:319) at cc.arduino.Compiler.build(Compiler.java:156) at processing.app.Sketch.build(Sketch.java:1108) at processing.app.Sketch.build(Sketch.java:1083) at processing.app.Editor$BuildHandler.run(Editor.java:2011) at java.lang.Thread.run(Thread.java:745) Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
When I delete the CONST array the program compiles successfully, but when I put it back in, the compiler tells me that I'm using too much dynamic RAM. If I am to understand correctly, consts should store in ROM not RAM.
Here's the even weirder part I put the program in Arduino IDE for Linux and it compiles, but it makes my robot act all crazy.
Any help would be much appreciated.