Arduino Development in Windows Using NetBeans IDE

After developing in the Arduino IDE for the last year, I decided to replace it with Netbeans, the IDE I use for my day job. I found this post detailing how http://java.dzone.com/news/arduino-development-using. In it Kerry Wong details a Netbeans plugin he created that emulates how the Arduino IDE works. Its a great post, but geared toward Linux so I had to tweak a few things to get it to work.

Here is a rough synopsis of his post geared toward Windows 7 and Arduino v22. You should still read his post.

Tool Chain

Configuring

  1. Add support for C/C++ in Netbeans if not already there. Tools | Plugins.
  2. Configure Netbeans to use WinAVR for building. Tools | Options | C/C++ | Build Tools.
  3. Install the downloaded Netbeans Arduino Plugin. Tools | Plugins.

Windows Specific Tweaks

The makefile that is generated when you create a new Arduino Project will be geared toward Linux. Here are some of the tweaks you will need for it:

  • When altering the various paths at the beginning of the makefile for your environment make sure you use forward slashes, not backslashes. For example C:/usr/arduino-022.
  • COM ports are in the format COMn
  • Change AVRDUDE_PROGRAMMER to stk500v2. I assume that is specific to the newer Arduino versions.
  • Not sure this is specific to my environment, but I had to change the line that read: $(LD) $(ALL_LDFLAGS) -o $@ applet/$(TARGET).o applet/core.a  -to- $(LD) $(ALL_LDFLAGS) -o $@ -lm applet/$(TARGET).o -lm applet/core.a. I had a lot of compile errors until I did.