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
Tags:
Permalink Reply by Søren Kuula on January 21, 2012 at 5:33am 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
Permalink Reply by Ben on January 22, 2012 at 9:07am For Arduplane, I've got warnings (out of range) when not using the relax version, and it then doesnt work properly.
The 0.22 relax version is no longer in the downloads, but can still be found here (at least the windows version)
http://wiki.ardupilot-mega.googlecode.com/git-history/2f5085e61fee3...
For linux you could have a look at the issue opened by Ardupilot team at Arduino project and which led to this relaxpatch version : http://code.google.com/p/arduino/issues/detail?id=729
Permalink Reply by Søren Kuula on January 23, 2012 at 12:53pm Hi Ben,
Thank you. I will get an APM for a plane soon, and then I might need the patch after all. Hmm hopefully I will find out what few lines have been changed somewhere, and then just repeat those changes.
Regards
Soren
Permalink Reply by Aaron Curtis on April 26, 2012 at 9:56am 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.
Permalink Reply by Curt Olson on May 29, 2012 at 9:52am I have arduino-1.0.1 for linux (64 bit) and am following the build instructions here: http://code.google.com/p/ardupilot-mega/wiki/Programming
I skipped the relaxpatch step because (a) I'm developing on linux and one isn't provided by the ardupilot team and (b) supposedly this is fixed in arduino-1.0.1. However I'm still getting a compile error. Does anyone have any ideas?
usr/local/Arduino/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: region text is full (ArduPlane.cpp.elf section .text)
/usr/local/Arduino/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: region text is full (ArduPlane.cpp.elf section .text)
/usr/local/Arduino/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: region text is full (ArduPlane.cpp.elf section .text)
Thanks,
Curt.
Permalink Reply by Curt Olson on May 29, 2012 at 10:06am Replying to myself -- I have the 1280 version of the APM here, not the 2560. When I set the board in the ardiuno IDE to be the mega 2560, then I do get a clean compile/link. So have we passed up the APM 1280 with the code base and now require a 2560 version of the APM?
Permalink Reply by Jonathan Challinger on June 7, 2012 at 9:56pm 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
Permalink Reply by Filippo Rinaldi on July 22, 2012 at 4:24am Jonathan, you're simply great! Thank you very very very much!
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.8 members
182 members
15 members
50 members
247 members
© 2013 Created by Chris Anderson.
Powered by
