Linux AVRDude AVRISP MKII Probleme

OP #1754488
Lesenswert?

Hallo

Ich suche schon den ganzen Tag nach einer Lösung für mein Problem, doch 
leider habe ich nichts passendes gefunden.
Wenn ich mit avrdude die Fusebit's lesen will bekomme ich immer diese 
Meldung:

> sudo avrdude -pm8 -cavrisp2 -Pusb -U lfuse:r:-:i
root's password:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 
0.00s

avrdude: Device signature = 0x00ff00
avrdude: Expected signature for ATMEGA8 is 1E 93 07
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.

Wenn ich diesen Befehl wiederhole ändert sich der Device signature Wert.
Habe auch schon an OSC1 ein 4MHz takt angelegt hat aber nichts gebracht.

Hier noch ein paar Eckdaten:
Laptop mit OPENSUSE 11.2
i | avr-libc           | The C Runtime Library for AVR Microcontrollers
i | avrdude            | Upload tool for AVR microcontrollers
i | cross-avr-binutils | GNU Binutils
i | cross-avr-gcc      | The GNU C Compiler and Support Files
installiert und Rechner neu gestartet
Programmer: AVRISP MKII
Controller: ATMEGA8 von Reichelt

Vielen Dank in vorraus
Jens
Gast #1754529
Lesenswert?

Hallo,

> vielen dank "-B20" hat funktioniert. Das "-B" den ISP Clock verändert
> weis ich wohl aber welche Frequenz verbirgt sich hinter der 20?

Da fragst du am besten "Thank you.". Ne, ich weiss es nicht, aber habe 
dieses Problem immer mit unprogrammierten AVRs und die 20 war einfach 
nur ein zufälliger Wert.


Grüße.
Gast #1754561
Lesenswert?

Hi,

"man avdude" sagt mir:

-B bitclock

Specify the bit clock period for the JTAG interface or the ISP clock 
(JTAG ICE only).  The value is a floating-point number in microseconds. 
The default value of the JTAG ICE results in about 1 microsecond bit 
clock period, suitable for target MCUs running at 4 MHz clock and above.

Du hast also deine ISP Clk auf 1/20us=50kHz festgelegt.

Mfg Ed

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren