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

Views: 443

Reply to This

Replies to This Discussion

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

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

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

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.

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.

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?  

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

Jonathan, you're simply great! Thank you very very very much!

RSS

Social Networking

Contests

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.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service