Sunday, September 23, 2007

AVRDUDE and the AVRISPmkII

After much pain and mental anguish I have cracked through stage one of the AVRISP mkII programmer using AVRDUDE. Although many readers are thinking what are you jabbering about, this is a huge breakthrough for me and my AVR class on Thursday nights. In the spirit of GNU, FOSS, OSS, and other open initiatives I have decided to post my findings for others who wish to embark on the wonderful journey of AVR programming.

>$ sudo avrdude -c avrispmkII -p m168 -P usb:0000B0005522 -U hfuse:r:high.txt -U lfuse:r:low.txt

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.11s

avrdude: Device signature = 0x1e9406
avrdude: reading hfuse memory:

Reading | ################################################## | 100% 0.03s

avrdude: writing output file "high.txt"


the command line entry to access the AVRISP mkII through usb and print the fuse bits to files is:

sudo avrdude -c avrispmkII -p m168 -P usb:0000B0005522 -U hfuse:r:high.txt -U lfuse:r:low.txt

The next stage is programming the fuse bits, and the processor itself. More will follow.

No comments: