[patch #6936] Support for BusPirate programmer

View: New views
3 Messages — Rating Filter:   Alert me  

[patch #6936] Support for BusPirate programmer

by Ben Asselstine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.nongnu.org/patch/?6936>

                 Summary: Support for BusPirate programmer
                 Project: AVR Downloader/UploaDEr
            Submitted by: mludvig
            Submitted on: Tue 06 Oct 2009 12:22:37 PM CEST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Attached is a patch that adds support for using "The Bus Pirate" as a
programmer in avrdude (based on current SVN r841).

The Bus Pirate is a universal (usb)serial-to-SPI/I2C/JTAG/... interface with
on-board +5V and +3.3V power supply, therefore it is a good candidate for an
AVR programmer.

The patch has been tested with Bus Pirate v1a with firmware 2.1.
Unfortunately I don't have the newer Bus Pirate v2 or v3 hardware but am
pretty confident it should work as well.

For more informations about the Bus Pirate check out Dangerous
Prototypes: http://dangerousprototypes.com/category/bus-pirate/

Here's a sample session:
~/src/avrdude-trunk$ ./avrdude -C ./avrdude.conf -p atmega328p \
                     -P /dev/ttyS0 -c buspirate -b 115200
Detecting BusPirate...
**
**  Bus Pirate v1a
**  http://dangerousprototypes.com
**  Firmware v2.1
**  DEVID:0x0447 REVID:0x3003 (A3)
**
BusPirate is now configured for SPI
avrdude: AVR device initialized and ready to accept instructions
Reading | ########################################## | 100% 0.34s
avrdude: Device signature = 0x1e950f
avrdude: safemode: Fuses OK
avrdude done.  Thank you.

Reading and writing Flash and EEPROM seem to work just fine.

The wiring is easy, the only exception bing that BusPirates's CS (Chip
Select) pin connects to AVR's RESET. Other than that it's obvious.

BusPirate  <->  AVR Chip
------------------------
      GND  <->  GND
      +5V  <->  Vcc
       CS  <->  RESET
     MOSI  <->  MOSI
     MISO  <->  MISO
  SCL/CLK  <->  SCK

I hope to see BusPirate supported in the next AVRdude release :-)

Michal



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 06 Oct 2009 12:22:37 PM CEST  Name: buspirate.patch  Size: 13kB  
By: mludvig
BusPirate support patch
<http://savannah.nongnu.org/patch/download.php?file_id=18820>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

[patch #6936] Support for BusPirate programmer

by Ben Asselstine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of patch #6936 (project avrdude):

             Assigned to:                    None => mludvig                


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

[patch #6936] Support for BusPirate programmer

by Ben Asselstine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of patch #6936 (project avrdude):

                  Status:                    None => Done                  
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

In SVN, rev 842.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev