I just started a UAV project for work using the Arduino Mega 2560.  But my problem is I cannot get the source code for Arduplane to compile at all.

I have downloaded the custom Arduino IDE for Ardupilot, and of course the Arduplane 2.78b source code as well.  I set the board to Arduino Mega 2560, and the sketchbook location to the unzipped Arduplane 2.78b folder.  Am I missing any steps, or doing something wrong?  I fear it just does not want to find the libraries that it needs. 

My sketchbook directory in preferences is: 

C:\Users\Me\Desktop\ArduPlane-2.78b

Here is my compile output:

output.txt

Views: 443

Reply to This

Replies to This Discussion

@Zack,

Did you use the Ardupilot button in the IDE header to set the HAL device and then restart the IDE to have the HAL device take effect?

Regards,

TCIII ArduRover2 Developer

And that was my missing step... Thank you!

However, I am getting a "Sketch is too big" error now, which seems to be a common problem.  I will be adding custom software, so I will need plenty of extra program memory space.  What should I do to fix this?  I don't want to comment any libraries because I assume they are all used.

Building for ArduPilot Mega 2.x
Excluding arduino core from include paths
Excluding arduino core from link
Binary sketch size: 264,608 bytes (of a 258,048 byte maximum)

Zack,

    If you're using windows, the instructions here should work: http://dev.ardupilot.com/wiki/building-ardupilot-with-arduino-windows/ .  It sounds like you may be using an out-of-date compiler which is less efficient and causes the sketch size to be too big to fit on the AVR.-Randy

i am facing the same problem : Sketch too big. and I am working in Mac.

Is there a fix for this?

Reply to Discussion

RSS

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service