Forum: Mikrocontroller und Digitale Elektronik Attiny2313 fuses falsch gesetzt =)


von Kristian (Gast)


Lesenswert?

Hallo zusammen,

ich bin mal wieder einer von den vielen die an ihren AVR-fuses 
rumgespiel haben ohne eine Ahnung davon zu haben ....

es handelt sich um einen Attiny2313, den ich mit avrdude und einem 
stk200 über die parallele Schnittstelle programmiere.

nachdem ich das lfuse - byte auf 0x06 gesetzt hatte (int. RC oszillator, 
128kHz, 0ms startup, clock output auf PIND2, divide clock /8) kann 
avrdude nicht mehr mit dem controller sprechen:
1
krisi@laptop:~/avr$ avrdude -c stk200 -p attiny2313
2
3
avrdude: AVR device not responding
4
avrdude: initialization failed, rc=-1
5
         Double check connections and try again, or use -F to override
6
         this check.
7
8
9
avrdude done.  Thank you.

Ich hab' mich schon durch unzählige Seiten im Web gewühlt und dabei 
Hinweise darauf gefunden dass der Takt von 128kHz wohl zu langsam für 
avrdude sein könnte.
Aber wie bringe ich avrdude auf den richtigen Takt???  welchen Wert muss 
ich der -B Option mitgeben, damit die Kommunikation wieder hinhaut?

Ich hoffe ihr könnt mir helfen

Vielen Dank
 Kristian

von Uwe .. (uwegw)


Lesenswert?

rtfm:

 -i delay

    For bitbang-type programmers, delay for approximately delay 
microseconds between each bit state change. If the host system is very 
fast, or the target runs off a slow clock (like a 32 kHz crystal, or the 
128 kHz internal RC oscillator), this can become necessary to satisfy 
the requirement that the ISP clock frequency must not be higher than 1/4 
of the CPU clock frequency. This is implemented as a spin-loop delay to 
allow even for very short delays. On Unix-style operating systems, the 
spin loop is initially calibrated against a system timer, so the number 
of microseconds might be rather realistic, assuming a constant system 
load while AVRDUDE is running. On Win32 operating systems, a 
preconfigured number of cycles per microsecond is assumed that might be 
off a bit for very fast or very slow machines.


-B ist nur für den JTAG ICE!

von Kristian (Gast)


Lesenswert?

Oo ... danke!

sorry ... hätt' ich ja auch selber druaf kommen können ... trotzdem 
vielen Dank!

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.