AVRdude OpenServo Programming
AVR dude is a powerful command line flash tool, designed to support many different devices and interfaces. It is very easy to configure AVRdude to bootstrap the OpenServo.
Here is a short guide to bootstrapping an OpenServo v2.x AtMega168 device using AVR Dude from the latest winAVR package. The examples seen below will refer to the STK200 programmer, modifications may be needed to device strings and scripts.
The first thing needed is to update the avrdude.conf to support the new AtMega168 device. This is a simple copy and paste from the file below, to the bottom of the conf file.
Now you need to flash the OpenServo board with the new bootloader. Use the AVRdude command line below to flash the device, and set the fuses.
- c:\WinAVR\avrdude.exe -p m168 -c stk200 -C "c:\WinAVR\bin\avrdude.conf" -P lpt1 -U flash:w:"ATMega168_Bootloader.hex":i -U lfuse:w:0xE2:m -U hfuse:w:0xDC:m -U efuse:w:0xF9:m -e
The entire command line breaks down into the following components
-p m168 - the AtMega chip in use -c stk200 - select the programmer to use. This line refers to the Kanda STK200 -C avrdude.conf - the configuration file location -P lpt1 - the port used to interface with the programmer. In this case Parallel port 1 -U flash - the location of the hex file to be flashed, and the format it is in. i = intel hex.
-U lfuse - low fuse byte. Values recommended for OpenServo v2.x is 0xE2
-U hfuse - high fuse byte. Values recommended for OpenServo v2.x is 0xDC
-U efuse - extended fuse byte. Values recommended for OpenServo v2.x is 0xF9
An excellent resource describing the AVR fuses, and their configuration within avrdude is here AVR Fuses Howto
Return to OpenServo Software
