[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] avrdude woes
From: |
Peter Harrison |
Subject: |
[avr-gcc-list] avrdude woes |
Date: |
Thu, 15 Jun 2006 21:16:52 +0100 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
Hi
I have installed WinAVR20060421
I have installed AVRStudio 4.12
My programmer is an AVRISP with the firmware upgraded by AVRStudion to
the following version 2.4 as shown by the AVRStudio programmer.
Under AVRStudio, I set the isp frequency to 921.6kHz
Reading from and writing to my Mega163 proceeds in a suitably swift and
reliable fashion.
AVRdude, invoked with the following command line:
avrdude -c avrisp2 -p m163 -B 1.1 -v -v -t
tells me that the programmer has the following attributes:
-8<----------
Programmer Type : STK500V2
Description : Atmel AVR ISP mkII
Hardware Version: 15
Firmware Version: 2.4
Topcard : Unknown
Vtarget : 0.0 V
Varef : 5.0 V
Oscillator : 3.686 MHz
SCK period : 1.1 us
-8<----------
and immediately follows up with
-8<----------
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
-8<----------
and dumps me back to the prompt
I have looked all over the place, including the avrdude docs, and can't
find a reason for this behaviour. Changing the SCK settings does not
seem to make any difference. Trying to use the programmer from the
makefile through PN2 gives me this output:
-8<----------
avrdude -p atmega32 -P com1 -c avrispv2 -U flash:w:main.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9402
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 "main.hex"
avrdude: input file main.hex auto detected as Intel Hex
avrdude: writing flash (386 bytes):
Writing | avrdude: stk500v2_paged_write: write command failed with 128
################################################## | 100% 0.05s
avrdude: failed to write flash memory, rc=-1
avrdude done. Thank you.
-8<----------
or, to put it another way, I can't make avrdude work and I don't know why.
Please help
Pete Harrison
- [avr-gcc-list] avrdude woes,
Peter Harrison <=