12/02/16
I have run into a problem.
I am running an Arduino Mega which has some 260kbtes of ram.
I am working on screen programs using a TFT 2.8 and for the most part, I'm doing OK.
I plan on running multiple screens and intend to call them when needed and feed them with data as needed to each screen.
The problem I'm having involves the compiler. When the program goes above about 10,422 kbytes, the compiler refuses to compile the program and says that it cannot compile for board Arduino/Genuino Mega or Mega 2560.
If I commit out previously checked and run functions or their calls, I can get the program to compile.
Compiler report: Successful
Sketch uses 10,422 bytes (4%) of program storage space. Maximum is 253,952 bytes.
Global variables use 419 bytes (5%) of dynamic memory, leaving 7,773 bytes for local variables. Maximum is 8,192 bytes.
If I put some of the calls back in, the compiler fails.
Compiler report: Failed
collect2.exe: error: ld returned 5 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
The only difference in the two compiler runs was that I put back in some of the calls for code that I had committed out to make the compiler run.
The calls I put back in was good code I have previously checked and ran. Another screen.
Is there any way we can change to compiler to allow it to compile a larger program???
I spent some time this evening reading the post listed recently.
I to am running XP SP3. and Arduino 1.6.13.
I did turn on the verbose error message option, I also changed to compatibility to Windows 98. No help.
One of the last postings I saw talked about shutting down Arduino, opening a new (Blank) sketch and compiling it.
Once I did that, I was able to compile and upload the program to my Arduino Mega ONCE. .
The compiler came back with the following report:
Sketch uses 10,530 bytes (4%) of program storage space. Maximum is 253,952 bytes.
Global variables use 437 bytes (5%) of dynamic memory, leaving 7,755 bytes for local variables. Maximum is 8,192 bytes.
When I tried to recompile the program while changing nothing, the compiler failed and reported the following again:
Compiler report: Failed
collect2.exe: error: ld returned 5 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
Before I get this project completed, my program is going to get a LOT bigger. That is why I am using a MEGA.
Arduino, I think we have a problem here..
Ken