avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] avrdude: Cannot program ATmega8 using JTAG ICE mkII


From: Shaun Jackman
Subject: [avr-gcc-list] avrdude: Cannot program ATmega8 using JTAG ICE mkII
Date: Mon, 8 Jan 2007 13:53:36 -0700

I'm attempting to use avrdude 5.3.1 to program a ATmega8 using a AVR
JTAG ICE mkII. To help troubleshooting, the same hardware setup works
in AVR Studio. Reading the Device ID and verifying the flash works,
but writing to the flash fails. The error message is

        avrdude: stk500v2_command(): unknown status 0x80

The error message seems a little curious, since I'm not using a
stk500v2 at all, but the AVR JTAG ICE mkII in ISP mode.

Thanks for any help you can give. Cheers,
Shaun

$ avrdude -Pusb -cjtag2isp -pm8 -Uflash:v:oemrepeater.hex:i

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.21s

avrdude: Device signature = 0x1e9307
avrdude: verifying flash memory against oemrepeater.hex:
avrdude: load data flash data from input file oemrepeater.hex:
avrdude: input file oemrepeater.hex contains 120 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.14s

avrdude: verifying ...
avrdude: 120 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
$ avrdude -Pusb -cjtag2isp -pm8 -Uflash:w:oemrepeater.hex:i

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.17s

avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
        To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "oemrepeater.hex"
avrdude: writing flash (120 bytes):

Writing |                                                    | 0%
0.00savrdude: stk500v2_command(): unknown status 0x80
avrdude: stk500v2_paged_write: write command failed
Writing | ################################################## | 100% 0.14s

avrdude: failed to write flash memory, rc=-1

avrdude: safemode: lfuse changed! Was e1, and is now fe
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: hfuse changed! Was d9, and is now 0
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: Fuses OK

avrdude done.  Thank you.
$ avrdude -Pusb -cjtag2isp -pm8 -q -U{h,l}fuse:r:-:h

avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x1e9307
avrdude: reading hfuse memory:
avrdude: writing output file "<stdout>"
0xd9
avrdude: reading lfuse memory:
avrdude: writing output file "<stdout>"
0xe1

avrdude: safemode: Fuses OK

avrdude done.  Thank you.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]