I recently bought myself a new toy and wanted to program it right away. The recommended way is the AVR32 toolchain. However, this isn't supported on Ubuntu 8.10. It's supported on 8.04 and 9.04, but since I'm on 8.10 I'm SOL. I couldn't upgrade to 9.04 Jaunty because of space issues (that's another blog and another story).
Well, anyhoo, Google and Bing are the solution to Linsux heartaches. Found the solution to my problems here: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=71919
Basically, i followed these instructions:
goto http://packages.ubuntu.com/hardy/i386/libxerces27/download
choose a mirror and open with gdebi
it will ask you too install the package. Do it.
now do
Install AVR32Studio
However, when you try to build a simple hello world application, AVR32Studio croaks with the following error
Even though the binaries are installed, the name that AVR32Studio wants aren't there. To fix this, create links with correct names, e.g. create a link for avr32-linux-gcc that points to avr32-gcc.
Since there are several files and i'm lazy enough to not do them manually, i wrote the following script
Build project again and it should work!
Well, anyhoo, Google and Bing are the solution to Linsux heartaches. Found the solution to my problems here: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=71919
Basically, i followed these instructions:
goto http://packages.ubuntu.com/hardy/i386/libxerces27/download
choose a mirror and open with gdebi
it will ask you too install the package. Do it.
now do
sudo apt-get install avr32-gnu-toolchain
Install AVR32Studio
However, when you try to build a simple hello world application, AVR32Studio croaks with the following error
Unable to find full path for "avr32-linux-gcc"
Even though the binaries are installed, the name that AVR32Studio wants aren't there. To fix this, create links with correct names, e.g. create a link for avr32-linux-gcc that points to avr32-gcc.
Since there are several files and i'm lazy enough to not do them manually, i wrote the following script
#!/usr/bin/perl
use warnings;
use strict;
die("can't open command") unless open(INPUT,"ls -1 /usr/bin/avr*-* | ");
while(< INPUT >)
{
chomp;
my $source = $_;
my $target = $source;
$target =~ s/-/-linux-/g;
system("sudo ln -s $source \t $target\n");
}
Build project again and it should work!
No comments:
Post a Comment