Skip to main content
Topic: avrdude: initialization failed, rc=-2 (Read 48157 times) previous topic - next topic

Re: Re: avrdude: initialization failed, rc=-2

Reply #30
I am not sure but you are sending 0xFF as the third byte when you issue the read command. Why not make the connections and try to read the chip id with AVRdude?

Re: Re: avrdude: initialization failed, rc=-2

Reply #31
This is because using avrdude is no success either
Code: [Select]
$ avrdude -F -c buspirate -P /dev/ttyUSB0 -p t13 -v

avrdude: Version 5.11.1, compiled on Jul  1 2012 at 15:16:59
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

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

        Using Port                    : /dev/ttyUSB0
        Using Programmer              : buspirate
        AVR Part                      : ATtiny13
        Chip Erase delay              : 4000 us
        PAGEL                        : P00
        BS2                          : P00
        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    5    4    0 no        64    4      0  4000  4000 0xff 0xff
          flash        65    6    32    0 yes      1024  32    32  4500  4500 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          calibration    0    0    0    0 no          2    0      0    0    0 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

Detecting BusPirate...
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline(): Bus Pirate v3.b clone w/different PIC
avrdude: buspirate_readline(): Firmware v6.1 r1676  Bootloader v4.4
avrdude: buspirate_readline(): DEVID:0x044F REVID:0x3003 (24FJ64GA004 A3)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: buspirate_readline(): HiZ>
**
BusPirate: using BINARY mode
BusPirate binmode version: 1
BusPirate SPI version: 1
avrdude: initialization failed, rc=-2
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATtiny13 is 1E 90 07
BusPirate is back in the text mode

avrdude done.  Thank you.
I tried this with ATtiny13A, ATtiney 2313 and several ATmega 328P's.
Still I can burn these chips using ArduinoISP programmer, so it looks like the problem is really with connections.

Re: Re: avrdude: initialization failed, rc=-2

Reply #32
[quote author="WalrusDickenson"]So I switch to SPI mode, power the chip with 'W', enable pull-ups on SPI lines 'P',
then issue a reset pulse by pulling reset pin up with 'A' and then low with 'a' (AUX pin of BP is connected to RESET).
[/quote]
Do you still have AUX connected to reset? CS should be connected to reset pin. Here are my suggestions now:
- Check that all your connections are correct.
- Upgrade to the latest version of the firmware if possible.
- Check with datasheet, if possible, increase the voltage to 5 V.
- Reduce the clock speed.

Re: Re: avrdude: initialization failed, rc=-2

Reply #33
I'm already using v6.1 firmware for Bus Pirate.

It doesn't work even if I apply power to the chip from external source instead of BP.

I tried switching to STK500 firmware (BPv3-STK500v2-v0b.hex).
Using it gives unstable results:
Code: [Select]
$ avrdude -B 32 -c stk500 -P /dev/ttyUSB0 -p t13 -v

avrdude: Version 5.11.1, compiled on Jul  1 2012 at 15:16:59
        Using Port                    : /dev/ttyUSB0
        Using Programmer              : stk500
        Setting bit clk period        : 32.0
        AVR Part                      : ATtiny13
        Chip Erase delay              : 4000 us
        PAGEL                        : P00
        BS2                          : P00
        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    5    4    0 no        64    4      0  4000  4000 0xff 0xff
          flash        65    6    32    0 yes      1024  32    32  4500  4500 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          calibration    0    0    0    0 no          2    0      0    0    0 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00

        Programmer Type : STK500V2
        Description    : Atmel STK500
        Programmer Model: AVRISP
        Hardware Version: 2
        Firmware Version Master : 2.10
        Vtarget        : 5.0 V
        SCK period      : 108.6 us

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.09s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
        Double check connections and try again, or use -F to override
        this check.


avrdude done.  Thank you.

and sometimes (4 times out of 5) it fails with yet another error:

Code: [Select]
         Programmer Type : STK500V2
        Description    : Atmel STK500
        Programmer Model: AVRISP
        Hardware Version: 2
        Firmware Version Master : 2.10
        Vtarget        : 5.0 V
        SCK period      : 199.7 us

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


avrdude done.  Thank you.
I tried with various values of -B but it never reads device signature properly. Same when using BP firmware.

Since MISO/MOSI and CS pins are confirmed to work on my BP,
it's either SCK pin or my wires being just too long.

Re: Re: avrdude: initialization failed, rc=-2

Reply #34
I've rechecked my AVR chips using my Arduino acting as a
STK500v1-compatible programmer and they all respond just fine,
producing expected device signatures. I hear clicking noise on SPI
lines when using BusPirate (I use a piezo buzzer as a poor man's
oscilloscope), though the pattern differs from that when using Arduino
as an ISP.

I noticed this in the avrdude manpage:

Quote
It may be a good idea to decouple the BusPirate and the AVR's SPI
buses from each other using a 3-state bus buffer. For example 74HC125
or 74HC244 are some good candidates with the latches driven by the
appropriate reset pin (cs, aux or aux2). Otherwise the SPI traffic in
one active circuit may interfere with programming the AVR in the other
design.

What is this all about and what other traffic appear on SPI line when
I simply connect my BP to a bare AVR chip?

I also tried falling back to ascii mode of BP, it fails as well:
Code: [Select]
Detecting BusPirate...
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline(): Bus Pirate v3.b clone w/different PIC
avrdude: buspirate_readline(): Firmware v6.1 r1676  Bootloader v4.4
avrdude: buspirate_readline(): DEVID:0x044F REVID:0x3003 (24FJ64GA004 A3)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: buspirate_readline(): HiZ>
**
avrdude: buspirate_send(): W
avrdude: buspirate_readline(): W
avrdude: buspirate_readline(): Command not used in this mode
avrdude: buspirate_readline(): HiZ>
avrdude: warning: did not get a response to PowerUp command.
avrdude: warning: Trying to continue anyway...
avrdude: buspirate_send(): {
avrdude: buspirate_readline(): {
avrdude: buspirate_readline(): ERROR: command has no effect here
avrdude: buspirate_readline(): Syntax error at char 1
avrdude: buspirate_readline(): HiZ>
avrdude: buspirate_send(): 0xac 0x53 0x00 0x00
avrdude: buspirate_readline(): 0xac 0x53 0x00 0x00
avrdude: buspirate_readline(): WRITE: 0xACERROR: command has no effect here
avrdude: buspirate_readline(): 
avrdude: buspirate_readline(): Syntax error at char 4
avrdude: buspirate_readline(): HiZ>
avrdude: error: SPI has not read 4 bytes back
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

avrdude: buspirate_send(): w
avrdude: buspirate_readline(): w
avrdude: buspirate_readline(): Command not used in this mode
avrdude: buspirate_readline(): HiZ>
avrdude: warning: did not get a response to PowerDown command.
avrdude: buspirate_send(): #
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline(): Bus Pirate v3.b clone w/different PIC
avrdude: buspirate_readline(): Firmware v6.1 r1676  Bootloader v4.4
avrdude: buspirate_readline(): DEVID:0x044F REVID:0x3003 (24FJ64GA004 A3)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: buspirate_readline(): HiZ>

avrdude done.  Thank you.

But I suspect it's just avrdude not switching BusPirate to SPI mode
properly.

The whole problem persists with avrdude built from current SVN trunk (r1139) too.

Re: Re: avrdude: initialization failed, rc=-2

Reply #35
Did you try using the regular mode with reduced clock speed? Also as I remember firmware 6.1 had some problems regarding the binary SPI mode, that's why I asked you to upgrade your firmware. There should be a test firmware for v6.3 somewhere on the forum, please try that.

Re: Re: avrdude: initialization failed, rc=-2

Reply #36
I've installed v6.3-beta1 r2088 firmware (from viewtopic.php?t=5052) on my BP.

It's all the same:

Code: [Select]
$ ./avrdude -C avrdude.conf -c buspirate -P /dev/ttyUSB0 -p t2313 -v -v

avrdude: Version 5.11svn, compiled on Apr  7 2013 at 03:02:38
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

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

        Using Port                    : /dev/ttyUSB0
        Using Programmer              : buspirate
        AVR Part                      : ATtiny2313
        Chip Erase delay              : 9000 us
        PAGEL                        : PD4
        BS2                          : PD6
        RESET disposition            : possible i/o
        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    6    4    0 no        128    4      0  4000  4500 0xff 0xff
          flash        65    6    32    0 yes      2048  32    64  4500  4500 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          efuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          calibration    0    0    0    0 no          2    0      0    0    0 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

Attempting to initiate BusPirate binary mode...
avrdude: buspirate_send_bin():
0x0a 0x0a
avrdude: buspirate_send_bin():
0x00 0x00 0x00 0x00  0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00  0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x42 0x42 0x49 0x4f  0x31
BusPirate binmode version: 1
avrdude: buspirate_send_bin():
0x01
avrdude: buspirate_recv_bin():
0x53 0x50 0x49 0x31 
BusPirate SPI version: 1
avrdude: buspirate_send_bin():
0x05 0x00 0x00 0x00  0x00
avrdude: buspirate_recv_bin():
0x01
avrdude: Paged flash write enabled.
avrdude: buspirate_send_bin():
0x49
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x60
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x8a
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x06
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x01
avrdude: buspirate_recv_bin():
0x01 0x00 0x01
AVR Extended Commands version 1
avrdude: buspirate_send_bin():
0x48
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xac 0x53 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x00 0x00 0x00 
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

avrdude: buspirate_send_bin():
0x40
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x00
avrdude: buspirate_send_bin():
0x0f
avrdude: buspirate_recv_bin():
0x42 0x42 0x49 0x4f  0x31 0x01 0x0d 0x0a
0x42
avrdude: buspirate_recv_bin():
0x75 0x73 0x20 0x50  0x69 0x72 0x61 0x74
0x65
avrdude: buspirate_recv_bin():
0x20 0x76 0x33 0x2e  0x62 0x20 0x63 0x6c
0x6f
avrdude: buspirate_recv_bin():
0x6e 0x65 0x20 0x77  0x2f 0x64 0x69 0x66
0x66
avrdude: buspirate_recv_bin():
0x65 0x72 0x65 0x6e  0x74 0x20 0x50 0x49
0x43
avrdude: buspirate_recv_bin():
0x0d 0x0a 0x46 0x69  0x72 0x6d 0x77 0x61
0x72
avrdude: buspirate_recv_bin():
0x65 0x20 0x76 0x36  0x2e 0x33 0x2d 0x62
0x65
avrdude: buspirate_recv_bin():
0x74 0x61 0x31 0x20  0x72 0x32 0x30 0x38
0x38
avrdude: buspirate_recv_bin():
0x20 0x20 0x42 0x6f  0x6f 0x74 0x6c 0x6f
0x61
avrdude: buspirate_recv_bin():
0x64 0x65 0x72 0x20  0x76 0x34 0x2e 0x34
0x0d
avrdude: buspirate_recv_bin():
0x0a 0x44 0x45 0x56  0x49 0x44 0x3a 0x30
0x78
avrdude: buspirate_recv_bin():
0x30 0x34 0x34 0x46  0x20 0x52 0x45 0x56
0x49
avrdude: buspirate_recv_bin():
0x44 0x3a 0x30 0x78  0x33 0x30 0x30 0x33
0x20
avrdude: buspirate_recv_bin():
0x28 0x32 0x34 0x46  0x4a 0x36 0x34 0x47
0x41
avrdude: buspirate_recv_bin():
0x30 0x30 0x34 0x20  0x41 0x33 0x29 0x0d
0x0a
avrdude: buspirate_recv_bin():
0x68 0x74 0x74 0x70  0x3a 0x2f 0x2f 0x64
0x61
avrdude: buspirate_recv_bin():
0x6e 0x67 0x65 0x72  0x6f 0x75 0x73 0x70
0x72
avrdude: buspirate_recv_bin():
0x6f 0x74 0x6f 0x74  0x79 0x70 0x65 0x73
0x2e
avrdude: buspirate_recv_bin():
0x63 0x6f 0x6d 0x0d  0x0a 0x48 0x69 0x5a
0x3e
BusPirate is back in the text mode

avrdude done.  Thank you.

No luck in ASCII mode either:
Code: [Select]
$ ./avrdude -C avrdude.conf -c buspirate -P /dev/ttyUSB0 -p t2313 -x ascii -B 32 -v -v

avrdude: Version 5.11svn, compiled on Apr  7 2013 at 03:02:38
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

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

        Using Port                    : /dev/ttyUSB0
        Using Programmer              : buspirate
        Setting bit clk period        : 32.0
        AVR Part                      : ATtiny2313
        Chip Erase delay              : 9000 us
        PAGEL                        : PD4
        BS2                          : PD6
        RESET disposition            : possible i/o
        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    6    4    0 no        128    4      0  4000  4500 0xff 0xff
          flash        65    6    32    0 yes      2048  32    64  4500  4500 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          efuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          calibration    0    0    0    0 no          2    0      0    0    0 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

Attempting to initiate BusPirate ASCII mode...
avrdude: buspirate_send_bin():
0x23 0x0a
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline(): Bus Pirate v3.b clone w/different PIC
avrdude: buspirate_readline(): Firmware v6.3-beta1 r2088  Bootloader v4.4
avrdude: buspirate_readline(): DEVID:0x044F REVID:0x3003 (24FJ64GA004 A3)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): HiZ>
**
BusPirate: using ASCII mode
avrdude: buspirate_send(): m
avrdude: buspirate_readline(): m
avrdude: buspirate_readline(): 1. HiZ
avrdude: buspirate_readline(): 2. 1-WIRE
avrdude: buspirate_readline(): 3. UART
avrdude: buspirate_readline(): 4. I2C
avrdude: buspirate_readline(): 5. SPI
avrdude: buspirate_readline(): 6. 2WIRE
avrdude: buspirate_readline(): 7. 3WIRE
avrdude: buspirate_readline(): 8. LCD
avrdude: buspirate_readline(): x. exit(without change)
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (1)>
avrdude: buspirate_send(): 5
avrdude: buspirate_readline(): 5
avrdude: buspirate_readline(): Set speed:
avrdude: buspirate_readline():  1. 30KHz
avrdude: buspirate_readline():  2. 125KHz
avrdude: buspirate_readline():  3. 250KHz
avrdude: buspirate_readline():  4. 1MHz
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (1)>
avrdude: buspirate_send():
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Clock polarity:
avrdude: buspirate_readline():  1. Idle low *default
avrdude: buspirate_readline():  2. Idle high
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (1)>
avrdude: buspirate_send():
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Output clock edge:
avrdude: buspirate_readline():  1. Idle to active
avrdude: buspirate_readline():  2. Active to idle *default
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (2)>
avrdude: buspirate_send():
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Input sample phase:
avrdude: buspirate_readline():  1. Middle *default
avrdude: buspirate_readline():  2. End
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (1)>
avrdude: buspirate_send():
avrdude: buspirate_readline():
avrdude: buspirate_readline(): CS:
avrdude: buspirate_readline():  1. CS
avrdude: buspirate_readline():  2. /CS *default
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (2)>
avrdude: buspirate_send():
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Select output type:
avrdude: buspirate_readline():  1. Open drain (H=Hi-Z, L=GND)
avrdude: buspirate_readline():  2. Normal (H=3.3V, L=GND)
avrdude: buspirate_readline():
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): (1)>
avrdude: buspirate_send(): 2
avrdude: buspirate_readline(): 2
avrdude: buspirate_readline(): Clutch disengaged!!!
avrdude: buspirate_readline(): To finish setup, start up the power supplies with command 'W'
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Ready
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): SPI>
BusPirate is now configured for SPI
avrdude: buspirate_send(): W
avrdude: buspirate_readline(): W
avrdude: buspirate_readline(): POWER SUPPLIES ON
avrdude: buspirate_readline(): Clutch engaged!!!
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): SPI>
avrdude: warning: did not get a response to PowerUp command.
avrdude: warning: Trying to continue anyway...
avrdude: buspirate_send(): {
avrdude: buspirate_readline(): {
avrdude: buspirate_readline(): /CS ENABLED
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): SPI>
avrdude: buspirate_send(): 0xac 0x53 0x00 0x00
avrdude: buspirate_readline(): 0xac 0x53 0x00 0x00
avrdude: buspirate_readline(): WRITE: 0xAC READ: 0x00
avrdude: buspirate_readline(): WRITE: 0x53 READ: 0x00
avrdude: buspirate_readline(): WRITE: 0x00 READ: 0x00
avrdude: buspirate_readline(): WRITE: 0x00 READ: 0x00
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

avrdude: buspirate_send(): w
avrdude: buspirate_readline(): w
avrdude: buspirate_readline(): Clutch disengaged!!!
avrdude: buspirate_readline(): POWER SUPPLIES OFF
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): SPI>
avrdude: warning: did not get a response to PowerDown command.
avrdude: buspirate_send(): #
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline(): Bus Pirate v3.b clone w/different PIC
avrdude: buspirate_readline(): Firmware v6.3-beta1 r2088  Bootloader v4.4
avrdude: buspirate_readline(): DEVID:0x044F REVID:0x3003 (24FJ64GA004 A3)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): HiZ>

avrdude done.  Thank you.

Re: Re: avrdude: initialization failed, rc=-2

Reply #37
Could you check if it works with avrdude built from SVN trunk? http://savannah.nongnu.org/svn/?group=avrdude
There've been several changes regarding BP support in avrdude over the last few months,
judging by commit history.

Re: Re: avrdude: initialization failed, rc=-2

Reply #38
Can you guys try with the binary mode? Obviously ascii mode is broken, I have no idea why. But binary mode shouldn't be broken.

Also can you just try:
Code: [Select]
./avrdude  -c buspirate -P /dev/ttyUSB0 -p t2313 -v -v

I'm digging out some AVR IC's to check out with my BP.

Re: Re: avrdude: initialization failed, rc=-2

Reply #39
[quote author="MickM"]Hi;
  It seems to be working.
[/quote]
Great!

[quote author="MickM"]
I used this command:
[mick@localhost avrdude]$ sudo ./avrdude  -c buspirate -P /dev/ttyUSB0 -p t2313 -v -v -F -U flash:w:../LI.hex:a
[/quote]
Hmmm, can you also try without the -F option? As it suppresses device ID check, it is better to see if without it we detect the device ID or not.

I managed to check connection with a atmega168p with my BPv2

Re: avrdude: initialization failed, rc=-2

Reply #40
Just to give some idea about my tests:
Test 1:
Code: [Select]
tayken@tayken-labtop:~$ avrdude -c buspirate -P /dev/buspirate -p m168p

Detecting BusPirate...
**
BusPirate: using BINARY mode
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e940b

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

Test 2:
Code: [Select]
tayken@tayken-labtop:~$ avrdude -c buspirate -P /dev/buspirate -p m168p -v

avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:37:28
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

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

        Using Port                    : /dev/buspirate
        Using Programmer              : buspirate
        AVR Part                      : ATMEGA168P
        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
          flash        65    6  128    0 yes    16384  128    128  4500  4500 0xff 0xff
          lfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          efuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          lock          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          calibration    0    0    0    0 no          1    0      0    0    0 0x00 0x00
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

Detecting BusPirate...
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Bus Pirate v3.a
avrdude: buspirate_readline(): Firmware v6.2-test r1862  Bootloader v4.3
avrdude: buspirate_readline(): DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: buspirate_readline(): HiZ>
**
BusPirate: using BINARY mode
BusPirate binmode version: 1
BusPirate SPI version: 1
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

BusPirate is back in the text mode

avrdude done.  Thank you.

Test 3:
Code: [Select]
tayken@tayken-labtop:~$ avrdude -c buspirate -P /dev/buspirate -p m168p -v -v

avrdude: Version 5.11.1, compiled on Oct 30 2011 at 10:37:28
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

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

        Using Port                    : /dev/buspirate
        Using Programmer              : buspirate
        AVR Part                      : ATMEGA168P
        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
          flash        65    6  128    0 yes    16384  128    128  4500  4500 0xff 0xff
          lfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          efuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          lock          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          calibration    0    0    0    0 no          1    0      0    0    0 0x00 0x00
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

Detecting BusPirate...
avrdude: buspirate_send_bin():
0x23 0x0a
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RE
avrdude: buspirate_readline():
avrdude: buspirate_readline(): Bus Pirate v3.a
avrdude: buspirate_readline(): Firmware v6.2-test r1862  Bootloader v4.3
avrdude: buspirate_readline(): DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
avrdude: buspirate_readline(): http://dangerousprototypes.com
avrdude: ser_recv(): programmer is not responding
avrdude: buspirate_readline(): HiZ>
**
BusPirate: using BINARY mode
avrdude: buspirate_send_bin():
0x00 0x00 0x00 0x00  0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00  0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x42 0x42 0x49 0x4f  0x31
BusPirate binmode version: 1
avrdude: buspirate_send_bin():
0x01
avrdude: buspirate_recv_bin():
0x53 0x50 0x49 0x31 
BusPirate SPI version: 1
avrdude: buspirate_send_bin():
0x4b
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x60
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x8a
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x4a
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xac 0x53 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x00 0x53 0x00 
avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0% 0.00savrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x30 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x30 0x00 0x1e 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x30 0x00 0x01 0x00 
avrdude: buspirate_recv_bin():
0x00 0x30 0x00 0x94 
Reading | #################                                  | 33% 0.01savrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x30 0x00 0x02 0x00 
avrdude: buspirate_recv_bin():
0x00 0x30 0x00 0x0b 
Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e940b
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x00 0xd2 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x00 0xd2 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x00 0xd2 
avrdude: safemode: lfuse reads as D2
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x58 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x58 0x08 0xde 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x58 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x58 0x08 0xde 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x58 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x58 0x08 0xde 
avrdude: safemode: hfuse reads as DE
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x08 0xf8 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x08 0xf8 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x08 0xf8 
avrdude: safemode: efuse reads as 0
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xa0 0x01 0xfc 0x00 
avrdude: buspirate_recv_bin():
0x00 0xa0 0x01 0xff 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xa0 0x01 0xfd 0x00 
avrdude: buspirate_recv_bin():
0x00 0xa0 0x01 0xff 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xa0 0x01 0xfe 0x00 
avrdude: buspirate_recv_bin():
0x00 0xa0 0x01 0xff 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xa0 0x01 0xff 0x00 
avrdude: buspirate_recv_bin():
0x00 0xa0 0x01 0xff 

avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x00 0xd2 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x00 0xd2 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x00 0xd2 
avrdude: safemode: lfuse reads as D2
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x58 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x58 0x08 0xde 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x58 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x58 0x08 0xde 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x58 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x58 0x08 0xde 
avrdude: safemode: hfuse reads as DE
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x08 0xf8 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x08 0xf8 
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x50 0x08 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x50 0x08 0xf8 
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK
avrdude: buspirate_send_bin():
0x40
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x00
avrdude: buspirate_send_bin():
0x0f
avrdude: buspirate_recv_bin():
0x42 0x42 0x49 0x4f  0x31 0x01 0x0d 0x0a
0x42
avrdude: buspirate_recv_bin():
0x75 0x73 0x20 0x50  0x69 0x72 0x61 0x74
0x65
avrdude: buspirate_recv_bin():
0x20 0x76 0x33 0x2e  0x61 0x0d 0x0a 0x46
0x69
avrdude: buspirate_recv_bin():
0x72 0x6d 0x77 0x61  0x72 0x65 0x20 0x76
0x36
avrdude: buspirate_recv_bin():
0x2e 0x32 0x2d 0x74  0x65 0x73 0x74 0x20
0x72
avrdude: buspirate_recv_bin():
0x31 0x38 0x36 0x32  0x20 0x20 0x42 0x6f
0x6f
avrdude: buspirate_recv_bin():
0x74 0x6c 0x6f 0x61  0x64 0x65 0x72 0x20
0x76
avrdude: buspirate_recv_bin():
0x34 0x2e 0x33 0x0d  0x0a 0x44 0x45 0x56
0x49
avrdude: buspirate_recv_bin():
0x44 0x3a 0x30 0x78  0x30 0x34 0x34 0x37
0x20
avrdude: buspirate_recv_bin():
0x52 0x45 0x56 0x49  0x44 0x3a 0x30 0x78
0x33
avrdude: buspirate_recv_bin():
0x30 0x34 0x33 0x20  0x28 0x32 0x34 0x46
0x4a
avrdude: buspirate_recv_bin():
0x36 0x34 0x47 0x41  0x30 0x30 0x32 0x20
0x42
avrdude: buspirate_recv_bin():
0x35 0x29 0x0d 0x0a  0x68 0x74 0x74 0x70
0x3a
avrdude: buspirate_recv_bin():
0x2f 0x2f 0x64 0x61  0x6e 0x67 0x65 0x72
0x6f
avrdude: buspirate_recv_bin():
0x75 0x73 0x70 0x72  0x6f 0x74 0x6f 0x74
0x79
avrdude: buspirate_recv_bin():
0x70 0x65 0x73 0x2e  0x63 0x6f 0x6d 0x0d
0x0a
avrdude: ser_recv(): programmer is not responding
BusPirate is back in the text mode

avrdude done.  Thank you.

Re: Re: avrdude: initialization failed, rc=-2

Reply #41
[quote author="MickM"]t also worked with "sudo"
I cannot access the USB port as a normal user.[/quote]
Hmm, from another message I suspect that you are using 64-bit Linux, right? It has a permission problem regarding serial ports, had a problem with Arduinos too. Managed to solve it, but cannot remember how now.

It is nice to know that you managed to make it work Mick. Now waiting for WalrusDickenson's test results. Hopefully he'll be able to solve these issues too.

Re: Re: avrdude: initialization failed, rc=-2

Reply #42
Hey Mick,

I've been using DP products with Linux (my choice is Ubuntu) for a long time. About 8 months ago got myself a new 64-bit system and started permission problems after that. So I believe it is not a DP specific problem but more like a virtual serial port related problem. Can be FTDI related, but not sure, didn't use my OLS on my 64-bit system yet, have to check it out. But I remember having the exact problem with Arduino boards, only sudo solved the problem.

Ahh, for Linux it is still a bit beta. I do my PIC development under Windows as MPLAB IDE and various compilers have been tested and verified. For Linux, there is MPLAB X and other compilers from Microchip. With a quick Google search, I believe you'll find the right page to download all install scripts. I know that people use those, but I heard that everybody gets strange results (or used to): sometimes the same code compiled with MPLAB X compilers act differently then MPLAB IDE counterpart. Haven't checked out the latest versions. But the nice thing is although the project file system is different, you can import a MPLAB IDE project file under MPLAB X and it automatically adds files to the project and generates the respective Makefile. Shouldn't be hard. BP already has been imported to MPLAB X. OLS code is on Gadget Factory's site as I know, not sure where but I remember that it required quite the sleuth skills to find it.

Re: Re: avrdude: initialization failed, rc=-2

Reply #43
The access rights issues should be fixable by adding a udev rule for the device. You can just make the device world-writable (which is fine for a normal desktop), or do it slightly cleaner by adding a special user group with access rights for it.

 

Re: avrdude: initialization failed, rc=-2

Reply #44
I've tried again with avrdude-6.1. Still not working:

Code: [Select]
$ avrdude  -c buspirate -P /dev/ttyUSB0 -p t13 -v -v

avrdude: Version 6.1, compiled on Jan 22 2015 at 01:13:43
        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/dzhus/.avrduderc"
        User configuration file does not exist or is not a regular file, skipping

        Using Port                    : /dev/ttyUSB0
        Using Programmer              : buspirate
        AVR Part                      : ATtiny13
        Chip Erase delay              : 4000 us
        PAGEL                        : P00
        BS2                          : P00
        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    5    4    0 no        64    4      0  4000  4000 0xff 0xff
          flash        65    6    32    0 yes      1024  32    32  4500  4500 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          calibration    0    0    0    0 no          2    0      0    0    0 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  4500  4500 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

Attempting to initiate BusPirate binary mode...
avrdude: buspirate_send_bin():
0x0a 0x0a
avrdude: buspirate_send_bin():
0x00 0x00 0x00 0x00  0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00  0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 
avrdude: buspirate_recv_bin():
0x42 0x42 0x49 0x4f  0x31
BusPirate binmode version: 1
avrdude: buspirate_send_bin():
0x01
avrdude: buspirate_recv_bin():
0x53 0x50 0x49 0x31 
BusPirate SPI version: 1
avrdude: buspirate_send_bin():
0x05 0x00 0x00 0x00  0x00
avrdude: buspirate_recv_bin():
0x01
avrdude: Paged flash write enabled.
avrdude: buspirate_send_bin():
0x49
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x60
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x8a
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x06
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x01
avrdude: buspirate_recv_bin():
0x01 0x00 0x01
AVR Extended Commands version 1
avrdude: buspirate_send_bin():
0x48
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x13
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0xac 0x53 0x00 0x00 
avrdude: buspirate_recv_bin():
0x00 0x00 0x00 0x00 
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

avrdude: buspirate_send_bin():
0x40
avrdude: buspirate_recv_bin():
0x01
avrdude: buspirate_send_bin():
0x00
avrdude: buspirate_send_bin():
0x0f
avrdude: buspirate_recv_bin():
0x42 0x42 0x49 0x4f  0x31 0x01 0x0d 0x0a
0x42
avrdude: buspirate_recv_bin():
0x75 0x73 0x20 0x50  0x69 0x72 0x61 0x74
0x65
avrdude: buspirate_recv_bin():
0x20 0x76 0x33 0x2e  0x62 0x20 0x63 0x6c
0x6f
avrdude: buspirate_recv_bin():
0x6e 0x65 0x20 0x77  0x2f 0x64 0x69 0x66
0x66
avrdude: buspirate_recv_bin():
0x65 0x72 0x65 0x6e  0x74 0x20 0x50 0x49
0x43
avrdude: buspirate_recv_bin():
0x0d 0x0a 0x46 0x69  0x72 0x6d 0x77 0x61
0x72
avrdude: buspirate_recv_bin():
0x65 0x20 0x76 0x36  0x2e 0x33 0x2d 0x62
0x65
avrdude: buspirate_recv_bin():
0x74 0x61 0x31 0x20  0x72 0x32 0x30 0x38
0x38
avrdude: buspirate_recv_bin():
0x20 0x20 0x42 0x6f  0x6f 0x74 0x6c 0x6f
0x61
avrdude: buspirate_recv_bin():
0x64 0x65 0x72 0x20  0x76 0x34 0x2e 0x34
0x0d
avrdude: buspirate_recv_bin():
0x0a 0x44 0x45 0x56  0x49 0x44 0x3a 0x30
0x78
avrdude: buspirate_recv_bin():
0x30 0x34 0x34 0x46  0x20 0x52 0x45 0x56
0x49
avrdude: buspirate_recv_bin():
0x44 0x3a 0x30 0x78  0x33 0x30 0x30 0x33
0x20
avrdude: buspirate_recv_bin():
0x28 0x32 0x34 0x46  0x4a 0x36 0x34 0x47
0x41
avrdude: buspirate_recv_bin():
0x30 0x30 0x34 0x20  0x41 0x33 0x29 0x0d
0x0a
avrdude: buspirate_recv_bin():
0x68 0x74 0x74 0x70  0x3a 0x2f 0x2f 0x64
0x61
avrdude: buspirate_recv_bin():
0x6e 0x67 0x65 0x72  0x6f 0x75 0x73 0x70
0x72
avrdude: buspirate_recv_bin():
0x6f 0x74 0x6f 0x74  0x79 0x70 0x65 0x73
0x2e
avrdude: buspirate_recv_bin():
0x63 0x6f 0x6d 0x0d  0x0a 0x48 0x69 0x5a
0x3e
BusPirate is back in the text mode

avrdude done.  Thank you.