You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT name FROM nav WHERE id = Embedded Projects
EMBEDDED PROJECTS JOURNAL
100% frei und kostenlos,
als PDF und in gedruckter Form,
per Open Source Lizenz
AVR-RISC (Infos)
Embedded Software selbst entwickeln
(inkl. Absatz über USBprog)
AVR-Starterkit für 61,90 EUR
Quicklinks: Home | Online Firmware Pool | Shop
     

Firmware installation of usbprog

Since 03.12.2006 there has been a new usbprog_base.hex version. If you want to use the console to change the firmware, this usbprog_base is absolutely necessary. 

You can find further information on the console by scrolling downward. 

Firmware - first installation

To be able to change the firmware in future at any time you have to install a programm called usbprog_base.hex. As soon as this program works you can download and install the newest version with a grafical user interface.

If you want to change the software on the adapter with an external device (parallel port cable) instead of using the grafical user interface, the latest firmware is available here.

The fuse bits should have the values lfuse 0xe0 and hfuse 0xd8. At programming you have to make sure that the jumper cap is in position 3-2.

 

Installing usbprog_base.hex 

You can download the file here. An external programmer is now necessary for the last time to program the ATMega32 on the usbprog PCB. Therefore the jumper cap has to be plugged in position 3-2. The program can now be installed as usual.
The filesize of exactly 32KByte may seem strange, the reason is that the bootloader writes avrupdate in the end of the flash storage. Thus it may take a little while until avrupdate is on the ATMega32.

Now the fuse bits have to be set correctly. Set low fuse to the value 0xe0 and high fuse to 0xd9.

 

Now the JTAG port is disabled (necessary so that port c can be used), the bootloader is enabled and the external clock signal is conducted from the USBN9604 to the ATMega32.

When you set the jumper cap to position 1-2 now and connect the adapter to the computer, the OS should report that a new unknown hardware device was found.

To install the actual firmware you have to continue with the next step.

Firmware - How to change the firmware offline  

There is an easy-to-use console program for Linux and Windows (if there is any need for a MAC version let me know). With it you can easily change the current firmware, but therefore usbprog_base.hex had to be installed before.

The program requires the desired firmware as .bin file. The file is available in the firmware pool

Installation and usage on Linux

You don't have to install anything on Linux. It is important that you have the accurate rights so that you can access the USB sub system. The easiest way would be to change the firmware as root user.

You can download the desired firmware on the console with the handy tool wget:

wget http://www.ixbat.de/usbprog/avrispmk2.bin 

The adapter has to be connected for the update procedure, of course. Now you can easily install the version with

./usbprog avrispmk2.bin

Installation and usage on Windows 

On Windows it's unfortunately not as easy as on Linux. You need the libusb to be able to access the USB bus with the console program on Windows. For this reason you have to install the latest filter driver of libusb. You can download it here:

http://sourceforge.net/project/showfiles.php?group_id=78138

Now you need another driver that is available here: Windows driver usbprog.

When you have installed usbprog_base.hex on the usbprog Adapter and have connected it you can install the Windows driver for the device. When this is done you can proceed exactly like on Linux meaning you have to download the desired .bin file from the firmware pool. Now you can install it with

usbprog.exe avrispv2.bin 

It takes about ten seconds on Windows until the new version is installed. This is because I deliberately give Windows enough time to detect the new device (the blank usbprog in update mode). It's not the fairest programming style but at least it always works this way.

 WindowsLinux
Source codes
 usbprog.exeusbprog   Available in the svn on Berlios
 libusb filter
  
 usbprog driver
  

Firmware - How to change the firmware online

  1. Plug in the usbprog Adapter
  2. open usbprog-online
  3. Press button "Find usbprog Adapter" -> Latest firmware name appears
  4. Press button "Download"
  5. List of available versions appears
  6. Mark desired
  7. and press button "Flash" and wait until the button is enabled again (could take up to ten seconds)
 © 2007 by Embedded Projects, Benedikt Sauter