Messing with drivers killed my Windows 7 install about a week ago. I accidentally deleted a bunch of drivers, and restoring them from the recycling bin didn't restore my internet, sound, or USB drivers... so I'm starting over with the software installation, and keeping track of the things I install.

For AVR programming you'll need:

AVR Studio 4 for connecting to the AVR

WinAVR the compiler

The example projects are mostly command-line and written for Linux, so we need:

MinGW provides a compiler. Add the MinGW bin folder to $PATH to make "gcc" and "make" accessible from everywhere.

LibUSB-Win32 provides USB functionality, and many sample projects rely on it. The project is from 2004, but seems to still work under Windows 7. x64 compatibility might be tough, though. As far as I can tell, the usb.h folder in the include folder is all that's necessary. Add the folder to $PATH.

To test the compiler, download the PowerSwitch project, and modify the makefile in the commandline directory: comment out the UNIX stuff and replace the commented out Windows stuff with:

# Use the following 3 lines on Windows and comment out the 3 above. You may
# have to change the include paths to where you installed libusb-win32
#USBFLAGS = -I/usr/local/include
USBFLAGS = -I/usr/local/include -I"C:\Program Files\LibUSB-Win32\include"
USBLIBS = -L/usr/local/lib -L"C:\Program Files\LibUSB-Win32\lib\gcc" -lusb
EXE_SUFFIX = .exe

Then go to the same folder in cmd and hit make. This should compile a new executable for you.

The next step is to set up the circuit. I'll talk about that next.

The following note is for myself: To enable the crystal, connect to the AVR and select the Fuses tab. Under SUT_CKSEL select "Ext. Crystal/Resonator High Freq.; Start-up time: 16K CK + 64 ms"

 

Comments
Add New
Write comment
Name:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated ( Monday, 18 January 2010 03:46 )