www.mikrocontroller.net

Forum: Mikrocontroller und Digitale Elektronik AvrDude und STK500v2 kein Flashen moeglich


Autor: Stefan I. (Gast)
Datum:

Bewertung
0 lesenswert
nicht lesenswert
Guten Abend!
Ich bekomme beim Versuch einen ATMEGA16 auf einem STK500 mit AVRDUDE zu 
flashen immer die Fehlermeldung

avrdude: stk500v2_program_enable(): bad STK600 connection status: 
Unknown (0x64)

avrdude: initialization failed, rc=-1

Mit dem AVRStudio klappts dagegen problemlos. Meine HW ist also 
prinzipiell in Ordnung.
Da ich gerne komplett übers makefile arbeiten will wäre es natürlich 
schön, wenn ich "make programm" verwenden könnte, scheitere aber eben an 
der Fehlermeldung von avrdude.
Anbei der avrdude -vvvv. Würde mich freuen, wenn mir jemand sagen 
könnte, was ich verkehrt mache.

Danke schön.

Gruß
Stefan


avrdude -p atmega16 -P com7 -c stk500v2 -U flash:w:main.hex -vvvv

avrdude: Version 5.6, compiled on Mar  5 2009 at 09:59:30
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is 
"C:\WinAVR-20090313\bin\avrdude.conf"


         Using Port                    : com7
         Using Programmer              : stk500v2
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv: . [1b]
avrdude: Recv: . [01]
avrdude: Recv: . [00]
avrdude: Recv: . [0b]
avrdude: Recv: . [0e]
avrdude: Recv: . [01]
avrdude: Recv: . [00]
avrdude: Recv: . [08]
avrdude: Recv: S [53]
avrdude: Recv: T [54]
avrdude: Recv: K [4b]
avrdude: Recv: 5 [35]
avrdude: Recv: 0 [30]
avrdude: Recv: 0 [30]
avrdude: Recv: _ [5f]
avrdude: Recv: 2 [32]
avrdude: Recv: . [02]
avrdude: stk500v2_getsync(): found STK500 programmer
         AVR Part                      : ATMEGA16
         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               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           eeprom         4    10   128    0 no        512    4      0 
9000  9000 0xff 0xff
                                  Block Poll               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           flash         33     6   128    0 yes     16384  128    128 
4500  4500 0xff 0xff
                                  Block Poll               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           lock           0     0     0    0 no          1    0      0 
9000  9000 0x00 0x00
                                  Block Poll               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0 
9000  9000 0x00 0x00
                                  Block Poll               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0 
9000  9000 0x00 0x00
                                  Block Poll               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           signature      0     0     0    0 no          3    0      0 
00 0x00 0x00
                                  Block Poll               PagePolled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           calibration    0     0     0    0 no          4    0      0 
00 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: STK500
avrdude: Send: . [1b] . [02] . [00] . [02] . [0e] . [03] . [90] . [86]
avrdude: Recv: . [1b]
avrdude: Recv: . [02]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [02]
avrdude: Recv: . [15]
avrdude: Send: . [1b] . [03] . [00] . [02] . [0e] . [03] . [91] . [86]
avrdude: Recv: . [1b]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [02]
avrdude: Recv: . [14]
avrdude: Send: . [1b] . [04] . [00] . [02] . [0e] . [03] . [92] . [82]
avrdude: Recv: . [1b]
avrdude: Recv: . [04]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [0a]
avrdude: Recv: . [1b]
         Hardware Version: 2
         Firmware Version Master : 2.10
avrdude: Send: . [1b] . [05] . [00] . [02] . [0e] . [03] . [9a] . [8b]
avrdude: Recv: . [1b]
avrdude: Recv: . [05]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [ff]
avrdude: Recv: . [ef]
         Topcard         : Unknown
avrdude: Send: . [1b] . [06] . [00] . [02] . [0e] . [03] . [94] . [86]
avrdude: Recv: . [1b]
avrdude: Recv: . [06]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: 3 [33]
avrdude: Recv:   [20]
         Vtarget         : 5.1 V
avrdude: Send: . [1b] . [07] . [00] . [02] . [0e] . [03] . [98] . [8b]
avrdude: Recv: . [1b]
avrdude: Recv: . [07]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [14]
avrdude: Recv: . [06]
avrdude: Send: . [1b] . [08] . [00] . [02] . [0e] . [03] . [95] . [89]
avrdude: Recv: . [1b]
avrdude: Recv: . [08]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: 2 [32]
avrdude: Recv: / [2f]
avrdude: Send: . [1b] . [09] . [00] . [02] . [0e] . [03] . [96] . [8b]
avrdude: Recv: . [1b]
avrdude: Recv: . [09]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [01]
avrdude: Recv: . [1d]
avrdude: Send: . [1b] . [0a] . [00] . [02] . [0e] . [03] . [97] . [89]
avrdude: Recv: . [1b]
avrdude: Recv: . [0a]
avrdude: Recv: . [00]
avrdude: Recv: . [03]
avrdude: Recv: . [0e]
avrdude: Recv: . [03]
avrdude: Recv: . [00]
avrdude: Recv: . [00]
avrdude: Recv: . [1f]
         SCK period      : 21.8 us
         Varef           : 5.0 V
         Oscillator      : 3.686 MHz

avrdude: Send: . [1b] . [0b] . [00] . [03] . [0e] . [02] . [9e] . [01] . 
[80]
avrdude: Recv: . [1b]
avrdude: Recv: . [0b]
avrdude: Recv: . [00]
avrdude: Recv: . [02]
avrdude: Recv: . [0e]
avrdude: Recv: . [02]
avrdude: Recv: . [00]
avrdude: Recv: . [1e]
avrdude: Send: . [1b] . [0c] . [00] . [0c] . [0e] . [10] . [c8] d [64] . 
[19]
[20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00] ? [3f]
avrdude: Recv: . [1b]
avrdude: Recv: . [0c]
avrdude: Recv: . [00]
avrdude: Recv: . [02]
avrdude: Recv: . [0e]
avrdude: Recv: . [10]
avrdude: Recv: . [c0]
avrdude: Recv: . [cb]
avrdude: stk500v2_command(): command failed
avrdude: Send: . [1b] . [0d] . [00] . [01] . [0e] . [0d] . [14]
avrdude: Recv: . [1b]
avrdude: Recv: . [0d]
avrdude: Recv: . [00]
avrdude: Recv: . [01]
avrdude: Recv: . [0e]
avrdude: Recv: . [0d]
avrdude: Recv: . [c9]
avrdude: stk500v2_recv(): checksum error
avrdude: Send: . [1b] . [0e] . [00] . [01] . [0e] . [01] . [1b]
avrdude: Recv: . [dd]
avrdude: Recv: . [1b]
avrdude: Recv: . [0e]
avrdude: Recv: . [00]
avrdude: Recv: . [0b]
avrdude: Recv: . [0e]
avrdude: Recv: . [01]
avrdude: Recv: . [00]
avrdude: Recv: . [08]
avrdude: Recv: S [53]
avrdude: Recv: T [54]
avrdude: Recv: K [4b]
avrdude: Recv: 5 [35]
avrdude: Recv: 0 [30]
avrdude: Recv: 0 [30]
avrdude: Recv: _ [5f]
avrdude: Recv: 2 [32]
avrdude: Recv: . [0d]
avrdude: stk500v2_getsync(): found STK500 programmer
avrdude: stk500v2_program_enable(): bad STK600 connection status: 
Unknown (0x64)

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: Send: . [1b] . [0f] . [00] . [03] . [0e] . [11] . [01] . [01] . 
[08]
avrdude: Recv: . [1b]
avrdude: Recv: . [0f]
avrdude: Recv: . [00]
avrdude: Recv: . [02]
avrdude: Recv: . [0e]
avrdude: Recv: . [11]
avrdude: Recv: . [00]
avrdude: Recv: . [09]

avrdude done.  Thank you.

Autor: Jens (Gast)
Datum:

Bewertung
0 lesenswert
nicht lesenswert
Hallo Stefan!

> avrdude -p atmega16 -P com7 -c stk500v2 -U flash:w:main.hex -vvvv

Das Parameter „atmega16“ gibt es nicht, hier musst Du schon verwenden 
was AVRdude auch versteht (m16) und die Baudrate fehlt auch noch…

avrdude -p m16 -P com7 -c stk500v2  -b 115200 -e -U 
flash:w:C:\MeinVerzeichnis\main.hex:a

LG Jens

Antwort schreiben

Die Angabe einer E-Mail-Adresse ist freiwillig. Wenn Sie automatisch per E-Mail über Antworten auf Ihren Beitrag informiert werden möchten, melden Sie sich bitte an.

Wichtige Regeln - erst lesen, dann posten!

  • Groß- und Kleinschreibung verwenden
  • Längeren Sourcecode nicht im Text einfügen, sondern als Dateianhang

Formatierung (mehr Informationen...)

  • [c]C-Code[/c]
  • [avrasm]AVR-Assembler-Code[/avrasm]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] - Link zu Artikel
  • Verweis auf anderen Beitrag einfügen: Rechtsklick auf Beitragstitel,
    "Adresse kopieren", und in den Text einfügen




Bild automatisch verkleinern, falls nötig
Bitte das JPG-Format nur für Fotos und Scans verwenden!
Zeichnungen und Screenshots im PNG- oder
GIF-Format hochladen. Siehe Bildformate.
Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt.
Bitte hier nur auf die ursprüngliche Frage antworten,
für neue Fragen einen neuen Beitrag erstellen.

Mit dem Abschicken bestätigst du, die Nutzungsbedingungen anzuerkennen.