avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] Can't program an ATMEGA48 using avrispmkII


From: Joerg Wunsch
Subject: Re: [avr-chat] Can't program an ATMEGA48 using avrispmkII
Date: Wed, 11 Oct 2006 22:04:15 +0200 (MET DST)

"Eddie Dawydiuk" <address@hidden> wrote:

> avrdude: AVR device initialized and ready to accept instructions
> 
> Reading | ################################################## | 100% 0.02s
> 
> avrdude: Device signature = 0xffffff

The default ISP speed of the AVRISP mkII as shipped appears to be
somewhat random.  I've seen parts that are terribly slow as shipped.
Maybe yours is just too fast?

I'm not sure whether the stk500v2 driver backend (which is also used
for the AVRISP mkII) does really honor the -B option.  Sure, it should
(and if it doesn't, please file a bug report).  But then, the AVRISP
mkII remembers the last ISP speed that had been configured in its
EEPROM, so what you can always do is:

avrdude -p m48 -P usb -c avrispmkII -tuF

Then, enter "sck 10", a 10 µs SCK period ought to be sufficient for
almost any situations (except an AVR running from the 128 kHz RC
oscillator), and leave AVRDUDE's terminal mode again.

Try to connect again after the AVRISP's ISP frequency has been
changed.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)





reply via email to

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