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?
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.
:
Bearbeitet durch User
Ä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
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
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?
Hallo Jörg, die Kommandozeile ist nicht vollständig ! Er hat keine USB-Device (-P <port>) angegeben.
1 | avrdude -h |
2 | avrdude: invalid option -- 'h' |
3 | Usage: avrdude [options] |
4 | Options: |
5 | -p <partno> Required. Specify AVR device. |
6 | -b <baudrate> Override RS-232 baud rate. |
7 | -B <bitclock> Specify JTAG/STK500v2 bit clock period (us). |
8 | -C <config-file> Specify location of configuration file. |
9 | -c <programmer> Specify programmer type. |
10 | -D Disable auto erase for flash memory |
11 | -i <delay> ISP Clock Delay [in microseconds] |
12 | -P <port> Specify connection port. |
13 | -F Override invalid signature check. |
14 | -e Perform a chip erase. |
15 | -O Perform RC oscillator calibration (see AVR053). |
16 | -U <memtype>:r|w|v:<filename>[:format] |
17 | Memory operation specification. |
18 | Multiple -U options are allowed, each request |
19 | is performed in the order specified. |
20 | -n Do not write anything to the device. |
21 | -V Do not verify. |
22 | -u Disable safemode, default when running from a script. |
23 | -s Silent safemode operation, will not ask you if |
24 | fuses should be changed back. |
25 | -t Enter terminal mode. |
26 | -E <exitspec>[,<exitspec>] List programmer exit specifications. |
27 | -x <extended_param> Pass <extended_param> to programmer. |
28 | -y Count # erase cycles in EEPROM. |
29 | -Y <number> Initialize erase cycle # in EEPROM. |
30 | -v Verbose output. -v -v for more. |
31 | -q Quell progress output. -q -q for less. |
32 | -l logfile Use logfile rather than stderr for diagnostics. |
33 | -? Display this usage. |
34 | |
35 | avrdude version 6.0.1 |
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 | $ ./avrdude -c usbtiny -p m32 -B10 -vvq |
2 | |
3 | avrdude: Version 6.3-20160220, compiled on Apr 20 2016 at 21:59:04 |
4 | Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ |
5 | Copyright (c) 2007-2014 Joerg Wunsch |
6 | |
7 | System wide configuration file is "/usr/local/etc/avrdude.conf" |
8 | User configuration file is "/home/joerg/.avrduderc" |
9 | |
10 | Using Port : usb |
11 | Using Programmer : usbtiny |
12 | Setting bit clk period : 10.0 |
13 | avrdude: usbdev_open(): Found USBtinyISP, bus:device: /dev/usb:/dev/ugen3.4 |
14 | AVR Part : ATmega32 |
15 | Chip Erase delay : 9000 us |
16 | PAGEL : PD7 |
17 | BS2 : PA0 |
18 | RESET disposition : dedicated |
19 | RETRY pulse : SCK |
20 | serial program mode : yes |
21 | parallel program mode : yes |
22 | Timeout : 200 |
23 | StabDelay : 100 |
24 | CmdexeDelay : 25 |
25 | SyncLoops : 32 |
26 | ByteDelay : 0 |
27 | PollIndex : 3 |
28 | PollValue : 0x53 |
29 | Memory Detail : |
30 | |
31 | Block Poll Page Polled |
32 | Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack |
33 | ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- |
34 | eeprom 4 10 64 0 no 1024 4 0 9000 9000 0xff 0xff |
35 | flash 33 6 64 0 yes 32768 128 256 4500 4500 0xff 0xff |
36 | lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 |
37 | hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 |
38 | lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 |
39 | signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 |
40 | calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00 |
41 | |
42 | Programmer Type : USBtiny |
43 | Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/ |
44 | avrdude: programmer operation not supported |
45 | |
46 | avrdude: Setting SCK period to 10 usec |
47 | CMD: [ac 53 00 00] [00 00 53 00] |
48 | avrdude: AVR device initialized and ready to accept instructions |
49 | CMD: [30 00 00 00] [00 30 00 1e] |
50 | CMD: [30 00 01 00] [00 30 00 95] |
51 | CMD: [30 00 02 00] [00 30 00 02] |
52 | avrdude: Device signature = 0x1e9502 (probably m32) |
53 | |
54 | avrdude done. Thank you. |
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 | $ ./avrdude -c usbtiny -p m32 -B1 -vvq |
2 | |
3 | avrdude: Version 6.3-20160220, compiled on Apr 20 2016 at 21:59:04 |
4 | Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ |
5 | Copyright (c) 2007-2014 Joerg Wunsch |
6 | |
7 | System wide configuration file is "/usr/local/etc/avrdude.conf" |
8 | User configuration file is "/home/joerg/.avrduderc" |
9 | |
10 | Using Port : usb |
11 | Using Programmer : usbtiny |
12 | Setting bit clk period : 1.0 |
13 | avrdude: usbdev_open(): Found USBtinyISP, bus:device: /dev/usb:/dev/ugen3.4 |
14 | AVR Part : ATmega32 |
15 | Chip Erase delay : 9000 us |
16 | PAGEL : PD7 |
17 | BS2 : PA0 |
18 | RESET disposition : dedicated |
19 | RETRY pulse : SCK |
20 | serial program mode : yes |
21 | parallel program mode : yes |
22 | Timeout : 200 |
23 | StabDelay : 100 |
24 | CmdexeDelay : 25 |
25 | SyncLoops : 32 |
26 | ByteDelay : 0 |
27 | PollIndex : 3 |
28 | PollValue : 0x53 |
29 | Memory Detail : |
30 | |
31 | Block Poll Page Polled |
32 | Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack |
33 | ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- |
34 | eeprom 4 10 64 0 no 1024 4 0 9000 9000 0xff 0xff |
35 | flash 33 6 64 0 yes 32768 128 256 4500 4500 0xff 0xff |
36 | lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 |
37 | hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 |
38 | lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 |
39 | signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 |
40 | calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00 |
41 | |
42 | Programmer Type : USBtiny |
43 | Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/ |
44 | avrdude: programmer operation not supported |
45 | |
46 | avrdude: Setting SCK period to 1 usec |
47 | CMD: [ac 53 00 00] [00 00 00 00] |
48 | CMD: [ac 53 00 00] [00 00 00 00] |
49 | avrdude: initialization failed, rc=-1 |
50 | Double check connections and try again, or use -F to override |
51 | this check. |
52 | |
53 | |
54 | avrdude done. Thank you. |
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.
:
Bearbeitet durch Moderator
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
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
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.