avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] AVRdude timeouts with CKDIV8 and 4MHz internal on t2313


From: Peter Fuhrmann
Subject: Re: [avr-chat] AVRdude timeouts with CKDIV8 and 4MHz internal on t2313
Date: Wed, 31 Dec 2008 12:11:20 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Preston Wilson schrieb:
"Johannes Bauer" wrote:

Hello list,

I just wanted to ask if anyone else has trouble with avrdude the way I
do: I have some tiny2313s which are preprogrammed with the CKDIV8 fuse
and additionally have the 4MHz internal oscillator active. When I try to
do anything with them using avrdude, the very first handshake (device
signature) fails. Sometimes the first two bytes arrive OK, but the third
is garbled, sometimes all bytes are trash. I do not remember the exact
values I got, however.

When I enter Ponyprog I can program the devices fine. When I tell it to
set the fuses to use an external crystal (slow rising power, no CKDIV)
the device can be accessed just fine from avrdude also.

Programmer: STK200
Cable length: around 20cm
OS: Linux joelaptop 2.6.26.1 #9 PREEMPT Sat Dec 27 01:33:46 CET 2008
i686 Intel(R) Pentium(R) M processor 1400MHz GenuineIntel GNU/Linux
AVRDude: Version 5.5 (Gentoo package dev-embedded/avrdude-5.5)

If it is helpful to provide the exact output or more debugging info, I
can flash back the fuses to the 4MHz osc. in order to reproduce the problem.

Use avrdude's -B option to slow down the ISP speed.  Try "-B 32" which will
work with clocks all the way down in the range of 128KHz.

-Preston


I also thin the Problem is due to a to fast sck. But the -B option in
avrdude does not work for the STK200.
Avrdude uses a fixed delay for bitbang-programmers.
Try uisp instead. It hasn't got as many features as avrdude, but it has
got an option to slow the clock for bitbanging-modes:
-dt_sck=<delay> as i recall. try putting a 1000 in there or something.

Best regards,
Peter






reply via email to

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