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

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

Re: [avr-gcc-list] avrdude woes


From: Tehn Yit Chin
Subject: Re: [avr-gcc-list] avrdude woes
Date: Fri, 16 Jun 2006 08:33:43 +1000

Hi Peter,

I had a similar problem with avrdude but I was using a STK500 instead of the AVRISP. The PC that I was using didnot have a RS232 port, so I was using a USB to serial port converter, and this converter was causing the inconsistency. I moved onto another PC with a real RS232 serial port any all my problems disappeared.

Not too sure if this the same problem with you, but I hope it helps.

cheers,
Tehn Yit Chin

On 6/16/06, Peter Harrison < address@hidden> wrote:
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 mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


reply via email to

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