Buspirate vs arduino pro mini

I am new to the forum so Hi to all,
Also new to arduino.

Not so new to microcontrolers in general.
I did some work with MSP430
I am bit rusty so I would like you to help me start so I can carry on...

I have buspirate 3.6 with 6.3 firmware (4.4 bootloader)
It works thro terminal

I did purchase adruino pro mini from amazon (UMT Media)
It seems it has some code burnt out of the box - gpio led is blinking when power on.

I have tried to connect both without joy. I am getting rc -2.
So checked the cables, changed the cables, all sorts configurations of connections (reading many forums)
Thro IDE and directly thro avrdude

I am working on win10
serial driver installed (I can talk to BP)
cables chceked for continuity etc
correct com selected for coms in ide and avrdude

what else?

I could get isp but since I already have the tool I do not want to generate more mess on my bench.

Appreciate any help please.

HD

Please do this (in the Arduino IDE):

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload Using Programmer
  • After the upload fails you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the forum toolbar).

In addition to what Pert has suggested, can you tell us what USB-Serial adapter you're using for the Pro Mini?

Cheers pert for quick reply,

I did that yesterday - do not remember the output.

I will do this again and post it here later today.

And I will do some more tests as per your converasation with mygodetjy

BJHenry - I am using buspirate.

HD

As promised Here is the output from the IDE:

Arduino: 1.8.7 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"

Sketch uses 1152 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 13 bytes (0%) of dynamic memory, leaving 2035 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cbuspirate -PCOM2 -Uflash:w:C:\Users\hd\AppData\Local\Temp\arduino_build_60737/Fade.ino.hex:i 

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

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM2
         Using Programmer              : buspirate
         AVR Part                      : ATmega328P
         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       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  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

Attempting to initiate BusPirate binary mode...
BusPirate binmode version: 1
BusPirate SPI version: 1
avrdude: Paged flash write enabled.
AVR Extended Commands 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.

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Also did this from cmd with -v -v -v -v
But the 9000 limit and 5min waiting time for next post...
Had to trim it.

Any ideas?

avrdude -v -v -v -v -patmega328p -cbuspirate -PCOM2 -Uflash:w:Fade.ino.hex:i

avrdude: 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 "avrdude.conf"

         Using Port                    : COM2
         Using Programmer              : buspirate
         AVR Part                      : ATmega328P
         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       1024    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     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  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 : BusPirate
         Description     : The Bus Pirate

Attempting to initiate BusPirate binary mode...
avrdude: buspirate_send_bin():
        0x0a 0x0a
avrdude: Send: . [0a] . [0a]
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: Send: . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00]
avrdude: Recv: B [42] B [42] I [49] O [4f] 1 [31]
avrdude: buspirate_recv_bin():
        0x42 0x42 0x49 0x4f   0x31
BusPirate binmode version: 1
avrdude: buspirate_send_bin():
        0x01
avrdude: Send: . [01]
avrdude: Recv: S [53] P [50] I [49] 1 [31]
avrdude: buspirate_recv_bin():
        0x53 0x50 0x49 0x31
BusPirate SPI version: 1
avrdude: buspirate_send_bin():
        0x05 0x00 0x00 0x00   0x00
avrdude: Send: . [05] . [00] . [00] . [00] . [00]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: Paged flash write enabled.
avrdude: buspirate_send_bin():
        0x49
avrdude: Send: I [49]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: buspirate_send_bin():
        0x60
avrdude: Send: ` [60]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: buspirate_send_bin():
        0x8a
avrdude: Send: . [8a]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: buspirate_send_bin():
        0x06
avrdude: Send: . [06]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: buspirate_send_bin():
        0x01
avrdude: Send: . [01]
avrdude: Recv: . [01] . [00] . [01]
avrdude: buspirate_recv_bin():
        0x01 0x00 0x01
AVR Extended Commands version 1
avrdude: buspirate_send_bin():
        0x48
avrdude: Send: H [48]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: buspirate_send_bin():
        0x13
avrdude: Send: . [13]
avrdude: Recv: . [01]
avrdude: buspirate_recv_bin():
        0x01
avrdude: buspirate_send_bin():
        0xac 0x53 0x00 0x00
avrdude: Send: . [ac] S [53] . [00] . [00]
avrdude: Recv: . [ff] . [ff] . [ff] . [ff]
avrdude: buspirate_recv_bin():
        0xff 0xff 0xff 0xff
avrdude: initialization failed, rc=-2
         Double check connections and try again, or use -F to override
         this check.

avrdude: buspirate_send_bin():
        0x00
avrdude: Send: . [00]
avrdude: Recv: B [42] B [42] I [49] O [4f] 1 [31]
avrdude: buspirate_recv_bin():
        0x42 0x42 0x49 0x4f   0x31
avrdude: buspirate_send_bin():
        0x40
avrdude: Send: @ [40]
avrdude: Recv: B [42]
avrdude: buspirate_recv_bin():
        0x42
avrdude: buspirate_send_bin():
        0x0f
avrdude: Send: . [0f]
avrdude: Recv: . [01] . [0d] . [0a] B [42] u [75] s [73]   [20] P [50] i [69]
avrdude: buspirate_recv_bin():
        0x01 0x0d 0x0a 0x42   0x75 0x73 0x20 0x50
        0x69
avrdude: Recv: r [72] a [61] t [74] e [65]   [20] v [76] 3 [33] . [2e] 5 [35]
avrdude: buspirate_recv_bin():
        0x72 0x61 0x74 0x65   0x20 0x76 0x33 0x2e
        0x35
avrdude: Recv: . [0d] . [0a] F [46] i [69] r [72] m [6d] w [77] a [61] r [72]
avrdude: buspirate_recv_bin():
        0x0d 0x0a 0x46 0x69   0x72 0x6d 0x77 0x61
        0x72
avrdude: Recv: e [65]   [20] v [76] 6 [36] . [2e] 1 [31]   [20] r [72] 1 [31]
avrdude: buspirate_recv_bin():
        0x65 0x20 0x76 0x36   0x2e 0x31 0x20 0x72
        0x31
avrdude: Recv: 6 [36] 7 [37] 6 [36]   [20]   [20] B [42] o [6f] o [6f] t [74]
avrdude: buspirate_recv_bin():
        0x36 0x37 0x36 0x20   0x20 0x42 0x6f 0x6f
        0x74
avrdude: Recv: l [6c] o [6f] a [61] d [64] e [65] r [72]   [20] v [76] 4 [34]
avrdude: buspirate_recv_bin():
        0x6c 0x6f 0x61 0x64   0x65 0x72 0x20 0x76
        0x34
avrdude: Recv: . [2e] 4 [34] . [0d] . [0a] D [44] E [45] V [56] I [49] D [44]
avrdude: buspirate_recv_bin():
        0x2e 0x34 0x0d 0x0a   0x44 0x45 0x56 0x49
        0x44
avrdude: Recv: : [3a] 0 [30] x [78] 0 [30] 4 [34] 4 [34] 7 [37]   [20] R [52]
avrdude: buspirate_recv_bin():
        0x3a 0x30 0x78 0x30   0x34 0x34 0x37 0x20
        0x52
avrdude: Recv: E [45] V [56] I [49] D [44] : [3a] 0 [30] x [78] 3 [33] 0 [30]
avrdude: buspirate_recv_bin():
        0x45 0x56 0x49 0x44   0x3a 0x30 0x78 0x33
        0x30
avrdude -v -v -v -v -patmega328p -cbuspirate -PCOM2 -Uflash:w:Fade.ino.hex:i

So you’re using “Upload using Programmer” rather than just “Upload”?
Do you have the Bus Pirate connected to the Arduino’s ISP pins (which I don’t think have a dedicated connector on a Mini), or to the Arduino Serial Port (on the end of the board)?
If you’re using the serial port, you’d want to put the Bus Pirate in the UART Passthrough mode, and just use “Upload” from the Arduino IDE. (or “-carduino” when using avrdude from the cli.)

westfw,

I did attempt UART bridge couple of days ago without success.

So I have cycled thro some other ideas:
1.changing firmware on BP to some kinda new beta version, bricking it in the process,
2. MSP430 launchpad as isp for arduino - no joy
3. BP with STK500v2 firmware - nope
4. BP with 5.9 firmware - UART bridge - success

So thank you.