Ok, Hold on buckle in. This post will not be pretty. THE PROBLEM: Is the Arduino's instance on their IDE and a crippled ANSI C/C++ language called Sketch. By the time, you have written a couple of what they call a Sketchs. They have really messed with you. As the two functions that basically you use are setup() and loop(). My aim here is not to teach you how to write a nice program in ASNI C/C++.
|
|||||||||||||||||||||||||||
My Tool Directory Figure 1 |
My Goal: Is to show you the light, just to guide you. My "go to" tool for Integrated Software Development Environment is the Eclipse IDE with standard GNU toolchains, running on my LinuxMint 17r2 desktop. I do not work in a M$ environment so I will not distract you with those comments. I have several specialized versions of Eclipse such as eclipse-avr, which is what I will be talking about. OK, let's get started. Fist we have to download a bunch of stuff. Now I put all my tools in my Tools directory (Figure 1). Use my directory structure it will make you life easier for you, so try it. Note: All downloads are for Linux 64 bit ubuntu distro.
- Arduino's IDE
- eclipse IDE.
- Java Runtime 6 or higher (use your package manager. Synaptic) It comes with the distro.
- AVR plugin for eclipse. (Well get this in eclipse itself)
- The GNU-AVR toolchain. You will need to execute this command string in your terminal:
sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
![]() |
Figure 2 |
OK let's start in your arduino directory and we will install the arduino-1.6.2-linux64.tar.xz as arduino/arduino-1.62.
Now go to your eclipse-avr directory and will install the eclipse-cpp-mars-R-linux-gtk-x86_64.tar.gz as eclipse/eclipse
If you haven't executed the command to get the GNU-AVR toolchain, then do so now. Now is a good time to check for the JAVA Runtime 6. If you have 7 you don't need 6 (Figure 2).
Ok, now we have to launch eclipse, click on the eclipse icon in your Tools/eclipse-avr/eclipse/ directory. It will ask you for you default workspace (say yes), you can always change it. DO NOT CHECK THE BOX "Use this as the default and do not ask again." Now the eclipse IDE will launch. So let's add the AVR plugin. Go to: Help > Install New Software. A new window called Install will open. Near the top is a drop-down box with "work with:" to it's left. Click the box and type http://avr-eclipse.sourceforge.net/updatesite/ then click add. In the pop-up box that appears type AVR Eclipse Plugin into the "name" box (Figure 3).
![]() |
Screen Shot of eclipse Install/Add Repository Figure 3 |
Now Please restart your eclipse IDE File > Restart. When eclipse restarts your eclipse IDE should now look like this (Figure 4):
![]() |
AVR plug-in installed Figure 4 |
Keep Tuned In, More To Come
~~ Cris
UPDATE 8/23 Blame this on Mario... He though that NetBeans IDE might also work for the AVR programming. Here's what I got after hours of getting it configured. It looks like I will have to put it out of its misery, and remove a really bad tool. ~~ CAH
![]() |
Utter Failure, What a Joke Figure 5 |