Hallo zusammen,
ich habe jetzt den 5. Anlauf genommen, und schaffe es nicht, meinen
ATMega32 zu programmieren. Ich habe die Kabelverbindungen getestet aber
erhalte folgenden Fehler:
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is
"C:\WinAVR-20100110\bin\avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
AVR Part : ATMEGA32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages
MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
eeprom 4 10 64 0 no 1024 4 0
9000 9000 0xff 0xff
flash 33 6 64 0 yes 32768 128 256
4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0
2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0
2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0
2000 2000 0x00 0x00
signature 0 0 0 0 no 3 0 0
0 0 0x00 0x00
calibration 0 0 0 0 no 4 0 0
0 0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer,
http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
Was bedeutet: Programmer oepration not supported?
My USBTiny funktioniert. Die grüne Lampe leuchtet und wenn ich den
avrdude befehl ausführe, blinkt auch kurz die rote LED auf.
Die Verbindungen sind auch hergestellt... was kann es nur sein?
Sebastian S. schrieb: > Was bedeutet: Programmer oepration not supported? Dass er in irgendeiner Operation auf den dummy-Programmer-Typen zurückfällt, der einfach nichts implementiert. Was ist denn die genaue Kommandozeile?
Ah die hab ich vergessen... entschuldige: avrdude -c usbtiny -p m32 -v
Bevor ich groß weitersuche: Version 5.10 ist hornalt, aktuell ist die 6.3. Wenn's mit einer aktuellen Version immer noch auftaucht, dann kannst du mal ein paar „-v“-Optionen mehr in die Runde werfen, dann sollte es genauer einzukreisen sein, an welcher Stelle das passiert.
Ich stell mich gerade echt doof an. Wohin muss ich den Inhalt des ZIPs den kopieren? Ich habe damals AVRDude mit WinAVR zusammen installiert. Oder gibt es einen Installer? Entschuldige...
Ah sorry.. hatte das falsche Zip runtergeladen. Ich probier es gleich nochmals aus.
So ich habs jetzt nochmal ausprobiert, gleiches Ergebnis:
avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is
"C:\Users\sebastian.scharf\Downloads\avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
avrdude.exe: usbdev_open(): Found USBtinyISP, bus:device:
bus-0:\\.\libusb0-0001--0x1781-0x0c9f
AVR Part : ATmega32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
eeprom 4 10 64 0 no 1024 4
0 9000 9000 0xff 0xff
flash 33 6 64 0 yes 32768 128
256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0
0 2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0
0 2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0
0 2000 2000 0x00 0x00
signature 0 0 0 0 no 3 0
0 0 0 0x00 0x00
calibration 0 0 0 0 no 4 0
0 0 0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer,
http://www.ladyada.net/make/usbtinyisp/
avrdude.exe: programmer operation not supported
avrdude.exe: Using SCK period of 10 usec
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to
override
this check.
avrdude.exe done. Thank you.
Ich habe noch weiteren Output bekommen:
C:\Users\sebastian.scharf\Downloads>avrdude.exe -c usbtiny -p m32 -v -v
-v
avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is
"C:\Users\sebastian.scharf\Downloads\avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
avrdude.exe: usbdev_open(): Found USBtinyISP, bus:device:
bus-0:\\.\libusb0-0001--0x1781-0x0c9f
AVR Part : ATmega32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
eeprom 4 10 64 0 no 1024 4
0 9000 9000 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
flash 33 6 64 0 yes 32768 128
256 4500 4500 0xff 0xff
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0
0 2000 2000 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0
0 2000 2000 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
lock 0 0 0 0 no 1 0
0 2000 2000 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
signature 0 0 0 0 no 3 0
0 0 0 0x00 0x00
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size
#Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ----
------ ----- ----- ---------
calibration 0 0 0 0 no 4 0
0 0 0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer,
http://www.ladyada.net/make/usbtinyisp/
avrdude.exe: programmer operation not supported
avrdude.exe: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 00 00]
CMD: [ac 53 00 00] [00 00 00 00]
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to
override
this check.
avrdude.exe done. Thank you.
Ähem, die „Fehlermeldung“ ist gar nicht ernst zu nehmen. Er macht ja danach weiter. Auf die Initialisierungssequenz (AC 53 00 00) bekommt er keine Antwort (nur Nullen, erwartet wäre XX AC 53 00). Überprüfe deine ISP-Verbindungen, und/oder setz' den ISP-Takt niedrig genug.
Vielleicht muss ich dazu erwähnen, das ich den Kommandozeilen Befehl zweimal hintereinander ausgeführt habe und beim zweiten Mal ein "-v -v" verwendet hatte. Die ISP Verbindungen funktionieren, und habe das ganze mit meinem Arduino getestet. Dort bekommt er den Kontakt den er braucht. Wie verändere ich denn den ISP Takt? Ich benutze den Adafruit USBTinyisp
Gast
#4609879
Ich habe nochmals einen Versuch gemacht und erhalte eine neue
Fehlermeldung am Ende:
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATmega32 is 1E 95 02
FEHLER:
avrdude: Version 6.3, compiled on Mar 15 2016 at 21:26:45
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is
"/usr/local/Cellar/avrdude/6.3/etc/avrdude.conf"
User configuration file is "/Users/isarfaktor/.avrduderc"
User configuration file does not exist or is not a regular
file, skipping
Using Port : usb
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 020:010
AVR Part : ATmega32
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages
MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
eeprom 4 10 64 0 no 1024 4 0
9000 9000 0xff 0xff
flash 33 6 64 0 yes 32768 128 256
4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0
2000 2000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0
2000 2000 0x00 0x00
lock 0 0 0 0 no 1 0 0
2000 2000 0x00 0x00
signature 0 0 0 0 no 3 0 0
0 0 0x00 0x00
calibration 0 0 0 0 no 4 0 0
0 0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer,
http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 00 00 00]
CMD: [ac 53 00 00] [00 00 00 00]
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000 (retrying)
avrdude: Device signature = 0x000000 (retrying)
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATmega32 is 1E 95 02
Gast
#4610562
Ich habe zwar schon ewig nicht mehr mit avrdude gearbeitet, aber bei der Meldung würde ich vermuten, dass du den falschen Controller verwendest. >avrdude: Yikes! Invalid device signature. >avrdude: Expected signature for ATmega32 is 1E 95 02
STK500-Besitzer schrieb: > bei der Meldung würde ich vermuten, dass du den falschen Controller > verwendest. Nö, der liest nach wie vor nur Nullen aus. Irgendwas ist mit der Hardware nicht in Ordnung, vielleicht ja auch das USBtiny?
mit welchen args ruft du avrdude eigentlich auf?
Gast
#4610626
Hallo Jörg, die Kommandozeile ist nicht vollständig ! Er hat keine USB-Device (-P <port>) angegeben.
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
Karl M. schrieb: > Er hat keine USB-Device (-P <port>) angegeben. Braucht man beim USBtiny auch nicht zu tun (bei vielen anderen Programmern, die es nur mit -P usb gibt, auch nicht).
Habe jetzt mal Zeit gehabt, mein USBtiny rauszukramen, dazu noch einen ATmega32L, den ich in einen STK500 gesteckt habe (aber ohne den STK selbst als Programmer zu nutzen, der ist nur Fassung und Versorgung). Hier das Ergebnis für 100 kHz ISP-Takt:
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |
52 | |
53 | |
54 | |
Setze ich den Takt auf 1 MHz hoch, geht es (erwartungsgemäß) nicht mehr, mit gleichen Symptomen wie bei Sebastian (es werden nur noch Nullen gelesen):
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |
52 | |
53 | |
54 | |
Die 10 µs ISP-Periode sind bei Sebastian auch zu sehen. Kann es sein, dass der Controller aus irgendeinem Grunde langsamer läuft als mit 1 MHz? Ansonsten wäre wohl jetzt der Zeitpunkt, da einen Oszi oder LA anzuschließen und sich die Signale anzusehen.
Gast
#4656687
Hallo Jörg, hättest Du hierzu evtl. auch einen Tipp? Nach Update Ubuntu Linux 14.04 -> 16.04 funktioniert avrdude mit USBProg4 nicht mehr Beitrag "Nach Update Ubuntu Linux 14.04 -> 16.04 funktioniert avrdude mit USBProg4 nicht mehr" Danke
Antwort schreiben
Bitte melde dich an, um einen Beitrag zu schreiben.