avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #6936] Support for BusPirate programmer


From: Michal Ludvig
Subject: [avrdude-dev] [patch #6936] Support for BusPirate programmer
Date: Tue, 06 Oct 2009 10:22:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009090900 SUSE/3.0.14-0.1 Firefox/3.0.14

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]