Pages: 1 [2]   Go Down
Author Topic: Arduino+Eclipse tutorial, from start to finish  (Read 13459 times)
0 Members and 1 Guest are viewing this topic.
Vancouver, Canada
Offline Offline
Newbie
*
Karma: 1
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Code:
**** 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
Logged

-=Bryan=-

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

eclipser, you changed my life dude!  smiley-lol
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:
http://www.chipkin.com/articles/using-eclipse-with-arduino-duemilanove


Thanks man!!! All the best!!!  smiley-wink

Gabriel
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@FalconFour
Quote
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.
http://arduino.cc/forum/index.php/topic,70547.0.html

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. smiley

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

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


The rest of chipkin tutorial may be useful for someone:
http://www.chipkin.com/articles/using-eclipse-with-arduino-duemilanove


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

Pages: 1 [2]   Go Up
Jump to: