Using Open Source Tools for ATMEL AVR Development

This section provides a guide for using open source tools such as WinAVR Compiler, Eclipse IDE and AVR Eclipse Plugin for ATMEL AVR development.

- Install WinAVR20080610. Can download from http://winavr.sourceforge.net/download.html , How to fix a problem of USBasp with WinAVR20080610 http://www.friendlyarm.com/fixed-a-problem-usbasp-in-winavr20080610/

- Install Eclipse 3.4 Ganymede by select Eclipse IDE for C/C++ Developers papckage, included CDT 5.0 (Eclipse’s C/C++ Development Tooling) in the package. When download complete. unzip to your install drive such as C:\eclipse , open eclipse program and select Workbench icon (only first time).

ATMEL AVR Eclipse Plugin

- Install AVR Eclipse Plugin by go to menu Help / Software Updates, when open a new window select Available Software, and press Add Site… button. add http://avr-eclipse.sourceforge.net/updatesite in Location: and press OK

ATMEL AVR Eclipse Plugin

Select AVR Eclipse Plugin and press install… button, the update will be start.

ATMEL AVR Eclipse Plugin

The next window review and confirm the package will be install, press Finish

ATMEL AVR Eclipse Plugin

Later the update process will restart Eclipse, press Yes. Now you have installed the AVR Eclipse plugin :)

ATMEL AVR Eclipse Plugin

Enjoy! Now you have open source IDE and C Compiler on Windows OS. Next step i will show how to configure the AVR Project on Eclipse IDE.

Fixed a problem USBasp in WinAVR20080610

Now, Winavr have update a new version WinAR20080610. But it have problem when use AVRdude (include with WinAVR20080610 package) with USBasp AVR Programmer. AVRdude can’t detect USBasp device, have error same following:

avrdude: error: could not find USB device “USBasp” with vid=0×16c0 pid=0×5dc

Because a driver version 0.1.10.1 (USBasp driver) not compatible with libusb DLL version 0.1.12.1 in WinAVR20080610. If you have a old USBasp driver still in your computer. must uninstall before. Can uninstall by goto Star->Control Panel->System->Hardware->Device Manager When Windows recognize with your USBasp device.

usbasp AVR-ISP Lite WinAVR

Download a new Windows driver (libusb DLL 0.1.12.1) for USBasp from USBasp-driver-0.1.12.1.zip unplug USBasp then plugin USBasp to USB Port again. Windows will recognize and request to install a new driver.

usbasp AVR-ISP Lite WinAVR

When install complete, test USBasp device again. Now work prefect.

usbasp AVR-ISP Lite WinAVR

Thanks thomasATulrichradigDE from avrfreaks for a new driver.