patchAVR Downloader/UploaDEr - Patches: patch #7723, Bus Pirate “raw-wire” mode...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7723: Bus Pirate “raw-wire” mode which can run down to 5 kHz

Submitted by:  Martin Panter <vadmium>
Submitted on:  Tue 14 Feb 2012 01:36:51 AM UTC  
Category:  None Priority:  5 - Normal
Status:  Ready For Test Privacy:  Public
Assigned to:  Rene Liebscher <rliebscher> Open/Closed:  Closed

Wed 30 Jan 2013 06:00:09 PM UTC, comment #1:

Integrated in svn revision 1136

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Tue 14 Feb 2012 01:36:51 AM UTC, original submission:

This is an updated version of the patch I posted at

I made original the patch to allow me to program an AT Tiny 2313 after setting its fuse bits to use the slower (100 kHz?) oscillator. The normal Bus Pirate SPI mode only goes down to 30 kHz which isn’t quite slow enough, but my Bus Pirate has another mode which also seems to do SPI and can run at 5 kHz.

I originally added a parameter allowing the desired SPI frequency to be specified in kilohertz (kHz), and the best matching available frequency would be chosen. I now realise this was slightly flawed because different Bus Pirate firmware versions have different frequencies available, and according to Patch #7437 it’s too hard to check the firmware version. So instead I added a “rawfreq” parameter similar to the existing “spifreq” parameter.

I updated the documentation. I’m not really familiar with either the man page or Texinfo markups but my changes should be pretty reasonable. Also, I used a few C99 features that GCC allows in its default “gnu90” dialect; I’m not sure if this is a problem or not.

There is also an uncontroversial patch that should probably be applied first to clean up some wording and dead code.

Martin Panter <vadmium>



Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rliebscher (Posted a comment)
  • -email is unavailable- added by vadmium (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-03 rliebscher Open/ClosedOpen => Closed
    2013-01-30 rliebscher StatusNone => Ready For Test
        Assigned toNone => rliebscher
    2012-02-14 vadmium Attached File- => Added 0002-Use-Bus-Pirate-raw-wire-mode-which-can-run-down-to-5.patch, #25060
        Attached File- => Added 0001-Clean-up-documentation-and-dead-code-after-recent-ch.patch, #25061

    Back to the top

    Powered by Savane 3.3