Problem installing AVR32 Studio On Ubuntu 9.04 Jaunty-CLOSED

Go To Last Post
23 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Everyone,
I installed the toolchain through my package manager and I was able to get most of them installed. I was wondering if anyone can help me figure out the following issues.

1. How do I set the enviroment variable so that the avr32program is recognized?

2. Where do I get "avr32gdbproxy", "avr32-gdb" and "avrfwupgrade"? I'm currently using the repository that was mentioned in the release notes deb http://www.atmel.no/avr32/ubuntu... binary

I also tried downloading avr32_gnu_toolchain_2.1.6_ubuntu_804.zip but I'm not sure if these versions can be used with the versions on the repositories.

BTW: I'm using:

chiques@chiques-laptop:~$ uname -a
Linux chiques-laptop 2.6.28-12-generic #43-Ubuntu SMP Fri May 1 19:27:06 UTC 2009 i686 GNU/Linux
chiques@chiques-laptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 9.04
Release:	9.04
Codename:	jaunty
chiques@chiques-laptop:~$ 

Any help would be appreciated,
Thanks!

Last Edited: Fri. May 8, 2009 - 06:29 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And update:

When I attempt to use my package manager to install avr32program, I get this error:

"
avr32program:
Depends: libavr32ocd but is not going to be installed
"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you tried to mark the libavr32ocd package for install?

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

eaanon01 wrote:
Have you tried to mark the libavr32ocd package for install?

Hi eaanon01,

I see it listed in the package manager but it has a "1" appended to it "libavr32ocd1" (a bit strange).

When I select it for download I get the following error message:

Quote:
libavr32ocd1:

Package libavr32ocd1 has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and never uploaded, has been obsoleted or is not available with the contents of sources.list

Is this a problem on the repository?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As an alternative method, I tried what the release notes recommends.

Quote:
There is a meta package called avr32-gnu-toolchain that have dependencies to all other
packages. It should be enough to install that package to get the rest. So if you write:

sudo apt-get install avr32-gnu-toolchain

Quote:
you should get all packages.
You should install all packages from the repository to get a complete AVR32 GNU
Toolchain.

I tried this and I get:

chiques@chiques-laptop:~$ sudo apt-get install avr32-gnu-toolchain
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  avr32-gnu-toolchain: Depends: avr32gdbproxy (>= 3.1.5) but it is not going to be installed
                       Depends: avr32program (>= 3.1.4) but it is not going to be installed
                       Depends: avr32trace (>= 2.1.0) but it is not going to be installed
                       Depends: avrfwupgrade (>= 1.1.2) but it is not going to be installed
                       Depends: libavr32ocd (>= 3.1.3) but it is not going to be installed
                       Depends: libavrtools (>= 3.1.6) but it is not going to be installed
                       Depends: libelfdwarfparser (>= 2.1.3) but 2.0.7-1 is to be installed
E: Broken packages

Everything keeps pointing to problems with the packages. Or problem the problem could still be between computer and chair :roll: :roll:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I see two different packaes. libavr32ocd and libavr32ocd1 if a try type in sudo apt-get install libavr32 and hit tab. But in by package manager I only have libavr32ocd (version 3.1.0.1).

I have the following souces

deb http://no.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://no.archive.ubuntu.com/ubuntu/ hardy main restricted


deb http://no.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://no.archive.ubuntu.com/ubuntu/ hardy universe


deb http://no.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://no.archive.ubuntu.com/ubuntu/ hardy multiverse

deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

But this is exctracted from the VMImage supplied from atmel.
( this thread should be moved to AVR32 Software Tools )

Life's to short for waiting on slow CPU's

Last Edited: Fri. May 8, 2009 - 07:20 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you do "sudo apt-get update" first?

Also, using aptitude instead of apt-get might provide some additional information (sudo apt-get install aptitude).

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hce wrote:
Did you do "sudo apt-get update" first?

Also, using aptitude instead of apt-get might provide some additional information (sudo apt-get install aptitude).

Hi hce,

Yes, I ran "sudo apt-get update" and received the following (sorry for the long post)

chiques@chiques-laptop:~$ sudo apt-get update
[sudo] password for chiques: 
Hit http://archive.canonical.com jaunty Release.gpg
Ign http://archive.canonical.com jaunty/partner Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release.gpg                 
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US      
Hit http://us.archive.ubuntu.com jaunty Release.gpg                                               
Ign http://us.archive.ubuntu.com jaunty/main Translation-en_US                                        
Hit http://archive.canonical.com jaunty Release                                                       
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US                           
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US                   
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US                 
Hit http://security.ubuntu.com jaunty-security Release                                      
Ign http://us.archive.ubuntu.com jaunty/restricted Translation-en_US                                  
Ign http://us.archive.ubuntu.com jaunty/universe Translation-en_US                                    
Ign http://us.archive.ubuntu.com jaunty/multiverse Translation-en_US                                  
Hit http://us.archive.ubuntu.com jaunty-updates Release.gpg                                           
Ign http://us.archive.ubuntu.com jaunty-updates/main Translation-en_US                     
Ign http://us.archive.ubuntu.com jaunty-updates/restricted Translation-en_US               
Ign http://us.archive.ubuntu.com jaunty-updates/universe Translation-en_US                 
Ign http://us.archive.ubuntu.com jaunty-updates/multiverse Translation-en_US               
Hit http://us.archive.ubuntu.com jaunty-backports Release.gpg                              
Ign http://us.archive.ubuntu.com jaunty-backports/main Translation-en_US                              
Ign http://archive.canonical.com jaunty/partner Packages                                    
Ign http://us.archive.ubuntu.com jaunty-backports/restricted Translation-en_US             
Ign http://us.archive.ubuntu.com jaunty-backports/universe Translation-en_US               
Ign http://us.archive.ubuntu.com jaunty-backports/multiverse Translation-en_US             
Hit http://us.archive.ubuntu.com intrepid-backports Release.gpg                            
Hit http://security.ubuntu.com jaunty-security/main Packages                               
Ign http://www.atmel.no binary/ Release.gpg                                                
Ign http://www.atmel.no binary/ Translation-en_US                                          
Hit http://us.archive.ubuntu.com jaunty-proposed Release.gpg                               
Ign http://us.archive.ubuntu.com jaunty-proposed/restricted Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-proposed/main Translation-en_US
Ign http://us.archive.ubuntu.com jaunty-proposed/multiverse Translation-en_US              
Ign http://us.archive.ubuntu.com jaunty-proposed/universe Translation-en_US                
Hit http://us.archive.ubuntu.com jaunty Release                                            
Ign http://archive.canonical.com jaunty/partner Sources                                               
Hit http://security.ubuntu.com jaunty-security/restricted Packages                         
Hit http://security.ubuntu.com jaunty-security/main Sources                                
Hit http://security.ubuntu.com jaunty-security/restricted Sources                          
Hit http://security.ubuntu.com jaunty-security/universe Packages                           
Hit http://us.archive.ubuntu.com jaunty-updates Release                                    
Hit http://us.archive.ubuntu.com jaunty-backports Release                                  
Ign http://www.atmel.no binary/ Release                                                               
Hit http://archive.canonical.com jaunty/partner Packages                                              
Hit http://security.ubuntu.com jaunty-security/universe Sources                            
Hit http://security.ubuntu.com jaunty-security/multiverse Packages   
Hit http://security.ubuntu.com jaunty-security/multiverse Sources    
Hit http://us.archive.ubuntu.com intrepid-backports Release          
Hit http://us.archive.ubuntu.com jaunty-proposed Release                                  
Hit http://us.archive.ubuntu.com jaunty/main Packages                                     
Hit http://us.archive.ubuntu.com jaunty/restricted Packages                               
Hit http://us.archive.ubuntu.com jaunty/main Sources                                      
Hit http://us.archive.ubuntu.com jaunty/restricted Sources                                
Hit http://us.archive.ubuntu.com jaunty/universe Packages                                 
Ign http://www.atmel.no binary/ Packages                                                  
Hit http://archive.canonical.com jaunty/partner Sources              
Hit http://us.archive.ubuntu.com jaunty/universe Sources
Hit http://us.archive.ubuntu.com jaunty/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty-updates/main Packages
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://us.archive.ubuntu.com jaunty-updates/main Sources
Hit http://us.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://us.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://us.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://www.atmel.no binary/ Packages       
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty-updates/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty-backports/main Packages
Hit http://us.archive.ubuntu.com jaunty-backports/restricted Packages
Hit http://us.archive.ubuntu.com jaunty-backports/universe Packages
Hit http://us.archive.ubuntu.com jaunty-backports/multiverse Packages
Hit http://us.archive.ubuntu.com intrepid-backports/main Sources
Hit http://us.archive.ubuntu.com intrepid-backports/restricted Sources
Hit http://us.archive.ubuntu.com intrepid-backports/universe Sources
Hit http://us.archive.ubuntu.com intrepid-backports/multiverse Sources
Hit http://us.archive.ubuntu.com jaunty-proposed/restricted Packages
Hit http://us.archive.ubuntu.com jaunty-proposed/main Packages
Hit http://us.archive.ubuntu.com jaunty-proposed/multiverse Packages
Hit http://us.archive.ubuntu.com jaunty-proposed/universe Packages
Reading package lists... Done
chiques@chiques-laptop:~$ 

I tried aptitude and I received the following information. I wasn't sure if I should select "y", "q" or "n"; so I chose "y" for now.

chiques@chiques-laptop:~$ sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree       
Reading state information... Done
aptitude is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
chiques@chiques-laptop:~$ sudo aptitude install avr32-gnu-toolchain
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
  avr32gdbproxy avrfwupgrade libavr32ocd libavrtools libelfdwarfparser 
The following NEW packages will be installed:
  autoconf{a} automake{a} autotools-dev{a} avr32-buildroot-essentials{a} avr32-gdb{a} 
  avr32-gnu-toolchain avr32program{a} avr32trace{a} bison{a} flex{a} g++{a} g++-4.3{a} gettext{a} 
  libacl1-dev{a} libattr1-dev{a} libboost-date-time1.34.1{a} libboost-filesystem1.34.1{a} 
  libboost-thread1.34.1{a} libltdl7-dev{a} liblzo2-dev{a} libncurses5-dev{a} libstdc++6-4.3-dev{a} 
  libtool{a} m4{a} texinfo{a} zlib1g-dev{a} 
1 packages upgraded, 30 newly installed, 0 to remove and 1 not upgraded.
Need to get 15.9MB/16.0MB of archives. After unpacking 55.2MB will be used.
The following packages have unmet dependencies:
  avr32gdbproxy: Depends: libxerces27 which is a virtual package.
  libavr32ocd: Depends: libxerces27 which is a virtual package.
  libavrtools: Depends: libxerces27 which is a virtual package.
  libelfdwarfparser: Depends: libxerces27 which is a virtual package.
  avrfwupgrade: Depends: libxerces27 which is a virtual package.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
avr32-gnu-toolchain [Not Installed]
avr32gdbproxy [Not Installed]
avr32program [Not Installed]
avr32trace [Not Installed]
avrfwupgrade [Not Installed]
libavr32ocd [Not Installed]
libavrtools [Not Installed]
libelfdwarfparser [2.0.7-1 (now)]

Score is -9757

Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done

chiques@chiques-laptop:~$ 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

eaanon01 wrote:
I see two different packaes. libavr32ocd and libavr32ocd1 if a try type in sudo apt-get install libavr32 and hit tab. But in by package manager I only have libavr32ocd (version 3.1.0.1).

I have the following souces

deb http://no.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://no.archive.ubuntu.com/ubuntu/ hardy main restricted


deb http://no.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://no.archive.ubuntu.com/ubuntu/ hardy universe


deb http://no.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://no.archive.ubuntu.com/ubuntu/ hardy multiverse

deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

But this is exctracted from the VMImage supplied from atmel.
( this thread should be moved to AVR32 Software Tools )

Hey eaanon01,

I see the two files available. Should I just go ahead and install "libavr32ocd"?

chiques@chiques-laptop:~$ sudo apt-get install libavr32
libavr32ocd   libavr32ocd1  libavr32sim   libavr32sim1
chiques@chiques-laptop:~$ sudo apt-get install libavr32
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I went ahead and tried to install libavr32ocd and I received the following:

chiques@chiques-laptop:~$ sudo apt-get install libavr32
libavr32ocd   libavr32ocd1  libavr32sim   libavr32sim1
chiques@chiques-laptop:~$ sudo apt-get install libavr32ocd
[sudo] password for chiques: 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libavr32ocd: Depends: libavrtools (>= 3.1.5) but it is not going to be installed
               Depends: libxerces27 but it is not installable
E: Broken packages
chiques@chiques-laptop:~$ 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

aja wrote:
libxerces27 was last seen in Ubuntu Hardy. Google for 'hardy libxerces27' and find the deb package and install it directly.

Hey aja,

I found information on libxerces27 on http://packages.ubuntu.com/hardy.... I will download and attempt to install http://mirrors.kernel.org/ubuntu... .

I'll post an update as soon as get results.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey Everyone,

Here is a bit of good news with my issue. I downloaded libxerces27_2.7.0-5_i386.deb and installed it using the Ubuntu local package installer successfully. I then went back to the package manager and I selected avr32program for install and it concluded without any errors this time.

Here are some remaining unanswered questions:

1. How do I run the avr32program that the package manager installed? The only way I know to run it right now is to click on the executable from avr32studio-ide-R2.1.1-linux.gtk.x86.zip. I'm used to clicking on the "Browse and Run Installed Applications" menu or to simply run the command "avr32program" in a terminal but none of those are working.

Here are the properties of the avr32program executable that was not installed using the package manager, it was downloaded separately.

2. When I do run avr32program from the downloaded file (not the one I installed using the package manager) I still get an "Environment check results" prompt saying the following packages are not installed:

-avr32gdbproxy: (Need version 3.1 or newer)
-avr32-gdb: (Need version 6.7 or newer)
-avrfwupgrade: (Need version 1.1 or newer)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Update regarding last post:

Nevermind. I figured it out. The packages were all listed in my package manager. I installed them and for the first time in years I see an environment check screen that has no errors!!!!

Now I have to learn how to use the board again :shock: :wink:

Thanks everyone for your help.

P.S. I'll read the docs to see if I can find out how I can launch avr32program without using the zip files.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
P.S. I'll read the docs to see if I can find out how I can launch avr32program without using the zip files.

Just open opp a shell and type avr32program.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hce wrote:

Just open opp a shell and type avr32program.

Hi hce,

I tried doing that but I get this error:

chiques@chiques-laptop:~$ avr32program
Missing command. Try avr32program -h for help.
chiques@chiques-laptop:~$ 
chiques@chiques-laptop:~$ 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mr805newbie wrote:
hce wrote:

Just open opp a shell and type avr32program.

Hi hce,

I tried doing that but I get this error:

chiques@chiques-laptop:~$ avr32program
Missing command. Try avr32program -h for help.
chiques@chiques-laptop:~$ 
chiques@chiques-laptop:~$ 


Well, that is not an error, did you try to type avr32program -h as suggested by the message you got?

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi hce,

I tried the "-h" switch and it gave me a list of available options. I tried the "gui" switch but it didn't work. I then tried the "-version" switch just to make sure I had the syntax correct and it did return a version.

chiques@chiques-laptop:~$ avr32program -h
This is avr32program 3.1.4
Usage: avr32program [option]...  [command-option]...

OPTIONS
  -h, --help			Display this help and exit.
  -l, --list			Detect and print information about available
				USB programmers.
  -v, --verbose 		Display diagnostic messages.
  -V, --version			Print the version number.
  -c, --comport 		Connect to given serial port. If  is
				'USB', connect to a USB device. If  is
				'USB:serial', the programmer with the given
				serial number will be used. The default is to
				connect to a USB device.
  -x, --xmlpath 	Specify path to XML part description files.
  -p, --programmer 	Specify which kind of programmer to use.
				Can be either jtagicemkii (the default),
				stk600 or avrone.
  -G, --gui			Indicates that program is being called from a
				graphical user interface. Changes progress
				reporting.
  -D, --daisy 
				Specify JTAG daisy-chain parameters.
  --part 		Specify part name, fail unless target matches.
  --no-tool-setup-check		Prevent the programmer from checking its
				setup against the selected part. Not applicable
				to all tools.

COMMANDSa

For a list of commands, type "avr32program help commands".
chiques@chiques-laptop:~$ avr32program --gui
Missing command. Try avr32program -h for help.
chiques@chiques-laptop:~$ avr32program --version
avr32program 3.1.4
Copyright (C) 2006-2008 Atmel Corporation
chiques@chiques-laptop:~$ 

Could it be an environment problem?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What are yo utrying to accomplish? The --gui switch works fine and is perfectly explained, it only changes progress reporting.

Try for example avr32program --gui cpuinfo.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
What are yo utrying to accomplish?

-I would like to know how to launch AVR32 Studio. I see listed in my Package Manager as "installed" but I don't know how to launch the GUI.

"how do I launch the GUI for this installed application?"

Quote:
The --gui switch works fine and is perfectly explained, it only changes progress reporting.

-I'm not sure what "progress reporting is"

Quote:
Try for example avr32program --gui cpuinfo.

That seems to work for me too. I was under the impression that I could launch the IDE GUI interface via the terminal.

chiques@chiques-laptop:~$ avr32program --gui cpuinfo
No USB programmers found.
chiques@chiques-laptop:~$
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVR32 Studio is exactly where you extracted it. AVR32 Studio is the zip file you downloaded from http://www.atmel.com/dyn/product...

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks everyone for your help.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I follow the same procedure, first i was getting errors as mr805newbie but then successfully run the avr32 studio 2.4 but when i open hello word example, give it a project name and try to press Finish, It didnt accept Finish command.COuld anybody help please

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got it. Just press Enter and it gets.strange