Hi,
Looking in the ArduCopter source, I see
Requires modified "mrelax" version of Arduino, which can be found here:
http://code.google.com/p/ardupilot-mega/downloads/list
Hmmm nice but I have a Linux machine. Is there a relax patch for that?
I have tried to find out myself :) but no solution. I don't know Arduino so well (although I have programmed AVRs bare metal style for years), so I will ask you people for advice...
Kind regards
Soren
Replies
On ubuntu:
Get the relax patch: http://code.google.com/p/arduino/issues/attachmentText?id=729&a...
mkdir arduino
cd arduino
apt-get source arduino
apt-get build-dep arduino
sudo apt-get install checkinstall build-essential automake debhelper fakeroot
cd ardu*
patch -p1 < 0001-Compiler.java-link-stage-Add-relax-option-when-compi.patch
dpkg-buildpackage -rfakeroot -b
sudo dpkg -i ../ardu*.deb
Looks like the relax patch has been committed to Arduino trunk and will be included in Arduino 1.0.1 . In the meantime, there is enough information here to compile your own patched Arduino.
Hi,
Hmm actually it compiles OK without the relax patch - meaning, I do not get any error messages when I compile:
Done compiling
Binary sketch size: 136870 bytes (of a 258048 byte maximum)
So unless the compiler error (the thing with the unpatched arduino not being able to handle code of this size) is a silent thing that generates no error messages but useless code, I will just stick with the system as is. It is 0022 alpha.
Regards
Soren