avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] AvrDude/tiny2313/Ponyprog


From: Joerg Wunsch
Subject: Re: [avr-chat] AvrDude/tiny2313/Ponyprog
Date: Sat, 3 Mar 2012 20:47:10 +0100 (MET)

Tony Montgomery-Smith <address@hidden> wrote:

> I guess that, if PonyProg works, and AvrDude doesn't, it must be a
> matter of different timings.

I'd guess that, too.  Apparently, the ISP frequency satisfies the
basic requirement of being less than 1/4 of the CPU frequency
(otherwise you wouldn't get along at all), but probably, your cabling
or driver strength is inadequate for the ISP speed, so you have to
reduce it even more.

In order to make AVRDUDE slower for bit-bang programming, you could
introduce additional delays using the -i <N> option.  The parameter
<N> is the additional delay time.  In theory, <N> is in microseconds,
but on modern CPUs, the auto-delay calibration loop might be off by a
large amount, so simply experiment with the figures.  I think a good
starting point is to use -i 10.

Obviously, that will make the programming slower.  You could
alternatively try finding a better programming hardware (there are
numerous commercial or DIY options for programming hardware these
days), or look whether you can improve the situation by shortening the
ISP cable.

-- 
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]