Sketch Size too big on Mac OS X

Totally new to Arducopter here and doing some experimentation for the first time, so sorry for what's probably a stupid question!

I'm using the modified version of Arduino on Mac OSX and just pulled the latest source code (ArduCopter V3.1-rc7) from the github.  Even with the modified version of Arduino, I'm still getting errors that say my sketch is too big when trying to compile Arducopter for APM 2.x:

Binary sketch size: 262,354 bytes (of a 258,048 byte maximum)

Did I miss something?  I basically did the Mac equivalent of everything listed here: http://dev.ardupilot.com/wiki/building-apm2xe-on-windowsdev_for_windows/  Is there anything additional that I need to mindful of on a Mac instead of a Windows box?  

Trying to build APMRover2 and ArduPlane didn't result in the same error…. just Arducopter.

Thanks for the help!

Jeff

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

Join diydrones

Email me when people reply –

Replies

  • Install MHV_AVR_Tools, my Arduino solved.

    • I have gcc version 4.8.2 and I am getting the same error of the sketch being too large...

      • actually any 2 ways to solve it:

        1. Have you install MHV_AVR_Tools ?

        this is link of MHV AVR Tools : https://infernoembedded.com/products/avr-tools/release/20131017

        2. Find file APM_Config.h and Uncomment to reduce memory used.

        look this part: "// uncomment the lines below to save on flash space if compiling for the APM using Arduino IDE.  Top items save the most flash space" 

        I hope it can help you.

        avrtools 20131017 | infernoembedded.com
        • Use the second ,ptoblem sloved !

  • Found the solution for this, Go to the APM_Config file and disable some stuff you dont use, under

    // uncomment the lines below to save on flash space if compiling for the APM using Arduino IDE.  Top items save the most flash space

    Pick stuff like optical flow and auto tune

  • Just as a followup to this, make sure your board type is set to the Mega 2560 in the tools menu. Although usually if you have the wrong board type selected you'll have compile errors in the code before it complains about the sketch being too big.

  • Hello everyone,
                     Now I have successfully downloaded "adruino IDE 1.5.5 beta" on my Ubuntu Linux and it is working perfectly fine. There is no problem with binary sketch size. New sketch I am getting is in the range of 360K which is well below 258K space available in APM2.5 board.

                     This might work fine on Windows and Mac too.

    Cheers!

    Aak

  • Hi Jeff, 

    Same problem on Mac with arduino 1.0.3 modified for ardupilot

  • HI Jeff,  

             I am having exactly same problem on my Windows. Please help if you have found an answer to this?

    Regs,

    Aak

  • Hi Jeff,

    I am having the same problem.

    Will let you know if I find something.

    cheers Erik

This reply was deleted.

Activity