Hi

I'm trying to build some of the ArduPilot software for the APM1. I keep getting error like:

%% APMrover2.elf
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: /tmp/APMrover2.build/APMrover2.elf section `.text' will not fit in region `text'
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: region `text' overflowed by 3664 bytes
collect2: ld returned 1 exit status
make: *** [/tmp/APMrover2.build/APMrover2.elf] Error 1
$

Same when trying to build ArduPlane. I'm thinking that this software no longer fits on the APM1. Is there a way to get the older software that at one time did fit on the APM1? Or would it be better to start carving off items from either the APIMover or ArduPlane to make it it?

Thanks...

Mike

Views: 114

Reply to This

Replies to This Discussion

The errors I mention above (for both APMrover2 and for ArduPlane) I get while building on a linux (Ubuntu 12.04.2) platform. I'd like to know how to get the version of software that once worked on the APM1. Thanks...

I've added some defines to my APM_config.h

 #define GPS_PROTOCOL GPS_PROTOCOL_NONE
 #define LOGGING_ENABLED DISABLED
 #define CLI_ENABLED DISABLED

and have gotten the overflow down to:

%% ArduPlane.elf
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: /tmp/ArduPlane.build/ArduPlane.elf section `.text' will not fit in region `text'
/usr/lib/gcc/avr/4.5.3/../../../avr/bin/ld: region `text' overflowed by 2476 bytes
collect2: ld returned 1 exit status
make: *** [/tmp/ArduPlane.build/ArduPlane.elf] Error 1
$

any idea what more I can add to APM_config.h to get it to fit on the APM1?

Thanks...

The defines I added to APM_config.h:

 #define GPS_PROTOCOL GPS_PROTOCOL_NONE
 #define LOGGING_ENABLED DISABLED
 #define CLI_ENABLED DISABLED

were for the ArduPlane code base.

which leaves me with still 2476 bytes to go. I imagine there has to be more defines I could add that would get this thing small enough to fit?

RSS

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Drone Delivery Challenge, is here

© 2014   Created by Chris Anderson.

Badges  |  Report an Issue  |  Terms of Service