Arduino Forum

Forum 2005-2010 (read only) => Software => Development => Topic started by: dada on Jun 30, 2010, 10:36 pm

Title: Problems with Eclipse installing AVR plug-in
Post by: dada on Jun 30, 2010, 10:36 pm
Hello

So I've been following an eclipse/AVR plug-in installation walkthrough here

http://robertcarlsen.net/2009/10/31/arduino-in-eclipse-989

and am hitting a problem immediately.

I've

Installed Eclipse (tried both most recent version Helios and version in walkthrough, Galileo)

Then used "Install New Software" to get, CDT/Eclipse C/C++, Development Tools, and then the AVR plug-in at http://avr-eclipse.sourceforge.net/updatesite/

I've then allowed Eclipse to restart and closed it again and downloaded CrossPack-AVR-20100115 and installed it and opened terminal.app and entered avr-help to confirm those tools are on the system

Restarting Eclipse the walkthrough (and others) then seem to suggest that I should be able to select new c project and "Select Empty Project " under "AVR Cross Target Application" and also find AVR preferences under Eclipse/preferences but ...

Neither are there! No reference to AVR projects in either New Project or preferences! New Project only offers various "Empty Project" or "Hello World" variants under Toolchain: MacOSX GCC. Eclipse appears to be aware of the AVR plug-in as a reinstall through new software says it's already there, there's an AVR icon under About Eclipse and references to it in the details therein and there are various avr named files within the Eclipse application folder.

I've tried lots of variations of clean install/uninstall/manual install/re-boot every step etc etc to no avail!

I'm running MacOSX 10.5.8. Java is up to date. I have an install off Eclipse/FDT elsewhere on the system (an extended version of Eclipse for Flash/ActionScript development) but I can't imagine they're in conflict. I can use normal Arduino IDE without problems btw.

Wassup?! I'd love to use Eclipse to do Arduino programming as it's what I use for my Flash/ActionScript development.

Thanks
Jim
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: Grifo on Jul 21, 2010, 12:20 pm
I have the same problem. I you resolve it, please tell me how.
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: dada on Jul 21, 2010, 12:38 pm
Hi

God it took me FOREVER!!!!

But I got there in the end :)

Robert's walkthrough is correct. It was just version conflicts. When the AVR plugin installs correctly it's seamless, there's no mystery to it or jumping through hoops.

The current version of the AVR plugin doesn't seem to like the current version of Eclipse.

Try with Eclipse Galileo

http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/galileosr2

As for configuration I found both Robert's walkthrough and the Arduino playground walkthrough helpful

http://www.arduino.cc/playground/Code/Eclipse

Cheers
Jim
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: leppie on Jul 21, 2010, 01:42 pm
I havent had problems.

But in the past have had many issues with the plugins and eclipse not being version compatible.
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: dada on Jul 21, 2010, 01:47 pm
You mean you haven't had problems with Helios and AVR plugin?
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: leppie on Jul 21, 2010, 01:58 pm
Quote
You mean you haven't had problems with Helios and AVR plugin?


Nope, not on Windows anyways.

Here are the files I got:

eclipse-cpp-helios-win32.zip  (92,113,717 bytes)

On first PC, I installed that, then the AVR direct from the update site.

On second PC, I downloaded the AVR plugin 'package' and installed it.

Both had the same results.

de.innot.avreclipse-p2-repository-2.3.3.20100701PRD.zip (2,487,545 bytes)

Title: Re: Problems with Eclipse installing AVR plug-in
Post by: dada on Jul 21, 2010, 02:13 pm
Could be an OSX issue ... or just them daft computers up to their crazy old tricks as usual!
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: Grifo on Jul 21, 2010, 02:32 pm
I do have the problem in windows. Dada solution didn't work either. I will go on trying
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: Grifo on Jul 21, 2010, 02:33 pm
In fact, to avoid problems with firewall, I download to local and install the plugin from there.
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: dada on Jul 21, 2010, 02:59 pm
Bah! Sorry that didn't help Grifo, how annoying for you!

Iirc I think I ended up doing a manual install of AVR too (by dropping everything into "dropins" folder and restarting Eclipse)

But like I say when it does install it's very obvious, the AVR button appears in the tool bar. I say this because for a time I wondered whether it had installed but wasn't showing because I was missing something else and all that sort of voodoo.

I'll have a proper think later and if I can remember anything else I'll post.
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: dada on Jul 21, 2010, 03:01 pm
... and just to add, persevere because it's worth it. The Arduino IDE is painful if you're used to something like Eclipse.
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: Grifo on Jul 23, 2010, 09:44 am
Finally, I got it.
I had to update Java machine 6.20 to 6.21.
Thanks

Title: Re: Problems with Eclipse installing AVR plug-in
Post by: CyberReefGuru on Dec 30, 2010, 03:24 pm
I have the same problem and upgrading to Java 6 is not an option since I'm on a PPC mac.  Anyone have resolution without mucking around with Java?
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: graynomad on Jan 03, 2011, 07:20 am
Quote
persevere because it's worth it. The Arduino IDE is painful if you're used to something like Eclipse.

Too right, I'm now using Netbeans and will never go back to the Arduino IDE.

(I tried Eclipse but had problems and gave up too early I suppose  :))

______
Rob
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: rg123tm456 on Jan 10, 2011, 07:55 pm
Hi,

I've had some issues installing AVR plug-in too; admittedly I have not yet tried the plug-in on Galileo yet, but my problem is NOT the plug-in itslef. Actually, I've installed the plug-in a couple times and still have some issue with getting the 'sketch' up to the board.

I think the problem is in configuring the 'Programmer' resource file. I can't remember the exact name, but it is where the list of devices is stored in a 'text' configuration file. My arduino is a couple years old, I think it is an AT Mega? So I made a copy of the programmer configuration file and added the "AT Mega" information based on the generic "arduinio" information. This did not help, I could not even read from the configuration file.

Does anyone know of an example using this "AVR Dude" with Eclipse and an Arduino Mega?
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: deece on Jan 13, 2011, 10:34 pm
Ralph,

I am successfully using Eclipse Helios with the AVR Eclipse plugin.
The Arduino Mega uses an ATmega1280 microcontroller at 16MHz, so make sure you choose that when configuring your project.

To upload to the Arduino Mega, you need to go to Windows, Preferences, AVR, AVRDude, Programmer Configurations, Add.

Then select "Arduino" from Programmer Hardware, set the port to the serial port your Arduino shows up as (under Windows, you can find this by going to the device manager). Set the baud rate to 57600 and leave the other parameters alone.

Now go to your project, properties, AVR, AVRDude, and choose the programmer configuration you just created from the list.

You should now be able to upload to the board. Compile your project, then make sure that the project is selected in Project Explorer (typically the leftmost panel). Right click on the project, then select AVR, Upload to board (you can add this as a toolbar button too) to upload.

If you get STK500 protocol errors, it's possible the timeout on resetting the board is not appropriate for you. Experiment by manually resetting the board and hitting the upload button.

I hope this helps.

PS. You may be interested in MHVlib, a runtime library for AVRs, developed in Eclipse. You can grab the Eclipse project from http://www.makehackvoid.com/group-projects/mhvlib-efficiency-oriented-library-avr-microcontrollers
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: rg123tm456 on Jan 15, 2011, 03:54 pm
Thanks for the information... The question I am dealing with is the "Configuration". Basically I understand all that you say, and maybe I'll give it a shot on Windows, but for now I am trying to get this up on UBUNTU. I can compile a project, I can see the AVRDude plug in stuff in my Eclipse IDE, and I can initiate an upload but it will fail.

The Linux version of the AVR instructions talks about a configuration/properties file, but the example does not show my model of Arduino, and is lacking of any documentation on how to set this part of the project up.

It sounds to me like the Windows AVRDude / Eclipse plug in has a better way to configure the project?
Title: Re: Problems with Eclipse installing AVR plug-in
Post by: deece on Jan 15, 2011, 10:57 pm
AVR Eclipse gets the list of programmers by issuing "avrdude -c ?". If your avrdude install is too old, it will not have the Arduino protocol listed in the output of that command.

Check that you are running the latest AVRDude (5.10) and update to it if not. The avrdude config that ships with the install should already have the appropriate lines for the Arduino.

Here is the config I have for the Arduino. Note that the protocol specified is Arduino, which needs to be compiled in:

programmer
 id    = "arduino";
 desc  = "Arduino";
 type  = arduino;
;