Go Down

Topic: Arduino+Eclipse tutorial, from start to finish (Read 30482 times) previous topic - next topic


Well, Win 7 64 bit and success. Compiled hex works fine when uploaded. Know just to figure out the limited debugging tools

Code: [Select]

**** Build of configuration Debug for project HelloWorld_LCD ****

make all
Invoking: Print Size
avr-size --format=avr --mcu=atmega328p HelloWorld_LCD.elf
AVR Memory Usage
Device: atmega328p

Program:    3602 bytes (11.0% Full)
(.text + .data + .bootloader)

Data:        242 bytes (11.8% Full)
(.data + .bss + .noinit)

Finished building: sizedummy


eclipser, you changed my life dude!  XD
I've tested this on windows 7 and works fine with one modification.
I've placed this http://www.chipkin.com/articles/wp-content/uploads/2010/03/libArduinoCore_2010-03-05_115644.zip a in place of your libCore.a

The rest of chipkin tutorial may be useful for someone:

Thanks man!!! All the best!!!  ;)



You simply can't compile Arduino-compatible sketches in this thing. Does not work. Shiny interface, yes, I'd love to use it. Can we? No. We're stuck with Arduino for now... smiley-sad

Thats not true.  A few weeks ago I posted about an eclipse plugin that i've been writing.  Although it isn't 100% complete, It can compile and upload arduino sketches the exact same way as arduino does.  In fact it uses the avr-gcc and the avrdude included with the arduino install.  The post didnt get much attention when i posted it, so i assumed people weren't looking for the functionality.

I hope this helps, you... I can't figure out how to build a jar file to make the plugin permanently installed, so for now you have to import the plugin project into eclipse, and run it from there.  I'm open questions and feedback. :)

Also uploading will only work on windows 64 bit because i havn't added the dlls to rxtx for others yet.


Fot the Windows users - have a look at the project templates that I created. You can find them here. https://github.com/mariusl/Eclipse-for-AVR
Place all three projects (ArduinoCore, ArduinoLibraries and Template) in the same workspace. The projects are set up to include the core and libraries from the workspace area. I recompile the libraries when I download or include a new library and this way all items are always current.
Having all the projects in the same workspace makes it very easy.

To include a new library you go to the ArduinoLibrary project. Right click on the project file, click on the Import option, go to the Arduino librarydirectory, select the directory that you want to use, select all the code and header files from the list, make sure that the "create complete folder structure" is selected and away you go.
Now just rebuild the ArdfuinoLibrary project and all is done.

Rather people think you to be a fool than you open your mouth and confirm it.


The rest of chipkin tutorial may be useful for someone:

The Chipkin tutorial brought my Eclipse environment up and running with no issues at all. Well written! :)

Go Up