Forum: Mikrocontroller und Digitale Elektronik AVRDude unter Debian (stretch) spinnt? (status 0x00)


von Jens R. (tecdroid)


Lesenswert?

Aaaalso, ich habe drei verschiedene Boards (alle eigenbau, eins geätzt, 
zwei gefräst) und drei programmer (2x dragon, 1x avrisp2) und keiner 
will mit den avrs reden. Die dragons reden nicht mal mit aufgesteckten 
Controllern..

Folgendes ist zu erkennen
- Kein Target wird korrekt erkannt, wenn keins dran ist.
- Target Power wird gemessen, wenn Strom anliegt
- Verpoltes Target wird erkannt..

Hier das Log vom avrisp:
tecdroid@tecdroid:~$ avrdude -p m168 -c avrisp2 -P usb -i7 -B5 -b1200 
-vvvv

avrdude: Version 6.3
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/tecdroid/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port                    : usb
         Using Programmer              : avrisp2
         Overriding Baud Rate          : 1200
         Setting bit clk period        : 5.0
         Setting isp clock delay        :   7
avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0014818
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P 
[50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
Using p = 8.00 us for SCK (param = 6)
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [06]
avrdude: Skipping parameter write; parameter value already set.
         AVR Part                      : ATmega168
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         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        65    20     4    0 no        512    4      0 
3600  3600 0xff 0xff
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           flash         65     6   128    0 yes     16384  128    128 
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 
4500  4500 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 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           efuse          0     0     0    0 no          1    0      0 
4500  4500 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 
4500  4500 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          1    0      0 
0     0 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

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] . [0c]
         Hardware Version: 1
         Firmware Version Master : 1.12
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00]   [20]
         Vtarget         : 3.2 V
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [06]
         SCK period      : 8.00 us

avrdude: Sent: . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . 
[ac] S [53] . [00] . [00]
avrdude: Recv: . [10] . [c0]
avrdude: stk500v2_command(): command failed
avrdude: Sent: . [03] . [a1]
avrdude: Recv: . [03] . [00] ' [27]
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: 
MOSI fail, RST fail, SCK fail, Target reverse inserted
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: Sent: . [11] . [01] . [01]
avrdude: Recv: . [11] . [00]

avrdude done.  Thank you.

tecdroid@tecdroid:~$ avrdude -p m168 -c avrisp2 -P usb -i7 -B5 -b1200 
-vvvv

avrdude: Version 6.3
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/tecdroid/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port                    : usb
         Using Programmer              : avrisp2
         Overriding Baud Rate          : 1200
         Setting bit clk period        : 5.0
         Setting isp clock delay        :   7
avrdude: usbdev_open(): Found AVRISP mkII, serno: 0000B0014818
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P 
[50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
Using p = 8.00 us for SCK (param = 6)
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [06]
avrdude: Skipping parameter write; parameter value already set.
         AVR Part                      : ATmega168
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         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        65    20     4    0 no        512    4      0 
3600  3600 0xff 0xff
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           flash         65     6   128    0 yes     16384  128    128 
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 
4500  4500 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 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           efuse          0     0     0    0 no          1    0      0 
4500  4500 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 
4500  4500 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          1    0      0 
0     0 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

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [01]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] . [0c]
         Hardware Version: 1
         Firmware Version Master : 1.12
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00]   [20]
         Vtarget         : 3.2 V
avrdude: Sent: . [03] . [98]
avrdude: Recv: . [03] . [00] . [06]
         SCK period      : 8.00 us

avrdude: Sent: . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . 
[ac] S [53] . [00] . [00]
avrdude: Recv: . [10] . [c0]
avrdude: stk500v2_command(): command failed
avrdude: Sent: . [03] . [a1]
avrdude: Recv: . [03] . [00] . [00]
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: 
Unknown status 0x00
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: Sent: . [11] . [01] . [01]
avrdude: Recv: . [11] . [00]

avrdude done.  Thank you.


und hier das vom dragon
tecdroid@tecdroid:~$ avrdude -p m168 -c dragon_isp -P usb -i7 -B5 -b1200 
-vvvv

avrdude: Version 6.3
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/tecdroid/.avrduderc"
         User configuration file does not exist or is not a regular 
file, skipping

         Using Port                    : usb
         Using Programmer              : dragon_isp
         Overriding Baud Rate          : 1200
         Setting bit clk period        : 5.0
         Setting isp clock delay        :   7
avrdude: stk500v2_dragon_isp_open()
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A200007679
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync(): Sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . 
[01] . [f3] . [97]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 0 (command_sequence == 0)
avrdude: Recv: . [86] . [01] . [ff] . [0b] . [06] . [01] . [ff] . [0b] . 
[06] . [07] . [00] . [a2] . [00] . [00] v [76] y [79] A [41] V [56] R 
[52] D [44] R [52] A [41] G [47] O [4f] N [4e] . [00]

Raw message:
0x86 0x01 0xff 0x0b 0x06 0x01 0xff 0x0b 0x06 0x07 0x00 0xa2 0x00 0x00 
0x76 0x79
0x41 0x56 0x52 0x44 0x52 0x41 0x47 0x4f 0x4e 0x00
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              6.11
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              6.11
  hardware version:              7
Serial number:                   00:a2:00:00:76:79
Device ID:                       AVRDRAGON
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x03, 1 
bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: Sent: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . 
[02] . [03] . [03] . [89] f [66]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 1 (command_sequence == 1)
avrdude: Recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_getsync(): Sending get sync command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . 
[0f] . [e2] u [75]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 2 (command_sequence == 2)
avrdude: Recv: . [80]

Raw message:
0x80
OK

Using p = 8.00 us for SCK (param = 6)

avrdude: jtagmkII_send(): sending 5 bytes
avrdude: Sent: . [1b] . [03] . [00] . [05] . [00] . [00] . [00] . [0e] / 
[2f] . [03] . [00] . [03] . [98] . [a5] v [76]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 3 (command_sequence == 3)
avrdude: Recv: . [88] . [03] . [00] . [06]
avrdude: Skipping parameter write; parameter value already set.
         AVR Part                      : ATmega168
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         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        65    20     4    0 no        512    4      0 
3600  3600 0xff 0xff
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           flash         65     6   128    0 yes     16384  128    128 
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 
4500  4500 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 
4500  4500 0x00 0x00
                                  Block Poll               Page 
Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages 
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ 
----- ----- ---------
           efuse          0     0     0    0 no          1    0      0 
4500  4500 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 
4500  4500 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          1    0      0 
0     0 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

         Programmer Type : DRAGON_ISP
         Description     : Atmel AVR Dragon in ISP mode
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x06):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: Sent: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . 
[03] . [06] . [8e] . [04]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 4 (command_sequence == 4)
avrdude: Recv: . [81] * [2a] . [0c]

Raw message:
0x81 0x2a 0x0c
parameter values:
0x2a  0x0c

         Vtarget         : 3.1 V

avrdude: jtagmkII_send(): sending 5 bytes
avrdude: Sent: . [1b] . [05] . [00] . [05] . [00] . [00] . [00] . [0e] / 
[2f] . [03] . [00] . [03] . [98] h [68] q [71]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 5 (command_sequence == 5)
avrdude: Recv: . [88] . [03] . [00] . [06]
         SCK period      : 8.00 us


avrdude: jtagmkII_send(): sending 15 bytes
avrdude: Sent: . [1b] . [06] . [00] . [0f] . [00] . [00] . [00] . [0e] / 
[2f] . [02] . [00] . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . 
[03] . [ac] S [53] . [00] . [00] . [8a] . [d6]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 6 (command_sequence == 6)
avrdude: Recv: . [88] . [10] . [c0]
avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude: jtagmkII_send(): sending 6 bytes
avrdude: Sent: . [1b] . [07] . [00] . [06] . [00] . [00] . [00] . [0e] / 
[2f] . [02] . [00] . [11] . [01] . [01] s [73] . [fe]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 7 (command_sequence == 7)
avrdude: Recv: . [88] . [11] . [00]
avrdude: stk500v2_jtagmkII_close()
avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): Sending sign-off command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: Sent: . [1b] . [08] . [00] . [01] . [00] . [00] . [00] . [0e] . 
[00] . [c6] . [ab]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): Got message seqno 8 (command_sequence == 8)
avrdude: Recv: . [80]

Raw message:
0x80
OK


Wie man sieht hab ich den Vorgang schon extrem ausgebremst und dennoch 
kommts nicht klar.. Hat wer eine Idee?

von Jens R. (tecdroid)


Lesenswert?

Das Problem war direkt unter meiner Nase.. oder eher dahinter.. also 
zwischen meinen Ohren..
Ich Trottel habe MISO und MOSI auf einem Zwischenadapter vertauscht..
Das klärt zumindest 2 der 3 boards.. Board 3 muss ich mal noch 
verifizieren was da kaputt ist..

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.