KrisBarrett.com » Page 'AVR Dragon Quick Start'

AVR Dragon Quick Start

This brief tutorial demonstrates how to read, write, and erase an AVR chip using AVR Dragon.  This tutorial assumes that you are using Ubuntu for your development environment.  This tutorial also assumes that you have an AVR development board running a demo program.  The JTAG port is used in this tutorial, but the ISP port can also be used.  Simply replace “dragon_jtag” with “dragon_isp”.

1. Install AVRDUDE:

$ sudo apt-get install avrdude

2. Read demo program from development board:

$ sudo avrdude -p m128 -c dragon_jtag -P usb -U flash:r:flash.hex:i

3. Erase development board:

$ sudo avrdude -p m128 -c dragon_jtag -P usb -e

4. Reprogram the development board:

$ sudo avrdude -p m128 -c dragon_jtag -P usb -U flash:w:flash.hex:i

Leave a comment

XHTML - You can use:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>