USBprog Programmer / AVR ISP mkII

Top  Previous  Next

The USBprog programmer is a neat small USB programmer which is fully compatible with the AVR ISP mkII programmer.

When you select this programmer, you will get the same interface as for the STK500 native programmer.

F4 will launch the programmer. For more details read the help section for the STK500 programmer.

 

The default clock is 125 KHz. This because most/all chips ship with a clock frequency of 1 MHz. And since the clock frequency maximum is a quarter of the oscillator frequency, the default is 125 KHz, low enough to be able to program all chips. Once your chip runs at say 8 MHz, you can select 2 MHz as the maximum.

 

Just like Atmel AVR Studio, the programmer uses the LIBUSB USB drivers.

You must have the LIBSUSB drivers installed on your PC. Without it, it will not work.

A lot of USB product install the LIBUSB drivers. So it is likely that you already have the driver installed.

If you do not have the drivers installed, then you can download them from the LIBSUSB web site :

 

http://sourceforge.net/project/downloading.php?group_id=78138&filename=libusb-win32-filter-bin-0.1.12.1.exe&a=15535642

 

The version might change in the future. In that case, look here : http://sourceforge.net/project/showfiles.php?group_id=78138&package_id=79216

 

 

The installation requires that you have administrator rights. Also run the setup in XP SP2 compatibility mode.

noticeWhen installing the USB driver, disconnect ALL USB devices. Obvious, you can not install from a USB flash drive since this is an USB device as well.

 

Also, it is a VERY GOOD idea to make a restore point and/or backup before you install the driver.

With a restore point you can go back in case of a problem.

A restore point is always a good idea when installing new software but when installing a new driver on your system, it is a MUST.

 

 

Before you run the installation, you need to set the compatibility mode.

 

libusb-compat

Click Apply and/or OK.

 

Now run the file. The opening windows looks like this:

 

libusb-intro

 

You have to click next , then you will see a license agreement which you need to accept.

You can select the location where the driver will be installed, and the start menu folder.

Keep on selecting/clicking  Next till the software is installed.

 

libusb-kernel

Once the software is installed you can run a test application.

 

noticeLIBUSB32 will only work on 32 bit windows. So it will NOT work on Vista-64.

For Vista 64 you can search youtube for LIBUSB Vista-64 tutorial (second method)

 

 

Remember : Installing LIBUSB is at your own risk. Make sure to make a restore point.

And do NOT FORGET to remove all USB devices during the installation.

 

 

noticeWhile you need LIBUSB so the IDE can communicate with the device, you also need the USB driver of the programmer. In this case, you need the mkII driver. This driver is installed with AVR Studio which you can download from atmel.com

It is a good idea to download and install AVR Studio anyway!

 

 

 

Options

In the Configuration options you can adjust the clock speed and the timeout of the USB.

When you are using USB 1.1 and a lot of devices that generate a lot of USB traffic, you might need to increase the default timeout of 100 (msec).