Please let me know if this is the wrong place for this post.
I pulled the most recent version of the ardupilot-mega code from Google Code using git, and following instructions on the wiki, attempted to compile ArduCopter for my APM1. But, I got a compiler error saying the code was too big:
Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: ArduCopter.cpp.elf section .text will not fit in region text
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: region text overflowed by 12458 bytes
1) how do I fix this issue?
2) how do I tell which version of the code I have? I assume it is 2.6.1, but I would think it would say somewhere.
But I think the codebase has finally outgrown the 1280. You could try and disable the CLI or Mavlink.
Thanks for the reply. It looks like I may have made a mistake. I have an APM1, but apparently that is not the same as ATmega1280. I just noticed that recent APM1s are based on ATmega2560. So I may be okay. I will check which version I have tomorrow.
Either way, that answers my question.
Would this be for the same reason? I'm getting errors like and have tried back to 2.0.55. These are the errors I get with that. I'm using OS X and Arduino 1.0.1 and APM 1280 and have that chosen as my board type.
In file included from /Users/steve/Documents/Arduino/libraries/FastSerial/BetterStream.h:16,
/Users/steve/Documents/Arduino/libraries/FastSerial/../AP_Common/AP_Common.h:19:20: error: wiring.h: No such file or directory
In file included from /Users/steve/Documents/Arduino/libraries/AP_DCM/AP_DCM.h:8,
/Users/steve/Documents/Arduino/libraries/AP_DCM/AP_DCM_HIL.h:7:22: error: WProgram.h: No such file or directory
In file included from ArduCopter.cpp:49:
/Users/steve/Documents/Arduino/libraries/FastSerial/FastSerial.h:119: error: conflicting return type specified for 'virtual void FastSerial::write(uint8_t)'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
I was unable to get anything newer than ArduCopter 2.6 with tweaks to work on the ATmega 1280 (insert sad face here). For the original poster, upgrading just the red board with the ATmega processor is fairly easy and the price has been reduced recently to around $50. Not having to mess with the code to update was well worth the money in my opinion.