Building software to fit on APM1

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

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 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?

  • 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...

This reply was deleted.

Activity