patchAVR Downloader/UploaDEr - Patches: patch #8228, Added linux spi programmer type...


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

patch #8228: Added linux spi programmer type based on spidev userspace drivers

Submitted by:  Kevin Cuzner <kcuzner>
Submitted on:  Thu 31 Oct 2013 04:10:19 PM UTC  
Votes:  170  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Sat 03 May 2014 08:47:30 AM UTC, comment #1:

This should definitely be included in the standard AVRDUDE.

Consider how many people have Raspberry PI's and how many people use microcontrollers such as Arduino with the Pi. It must be better to have one version of AVRDude rather than different forks of it. I've used the KCUZNER version and it works well.

Tim Chilton <tchilton>
Thu 31 Oct 2013 04:10:19 PM UTC, original submission:

I've been sitting on this a little while, but I just discovered how to submit a patch. I apologize if this isn't what is supposed to go in the "Original Submission" field. I have attached my patch as an attachment.

As documented at and, I have created a linuxspi programmer type and added it to avrdude. I had talked about it a bit on the mailing list back in May, but now I have finally gotten around to sending the patch.

The linuxspi programmer type allows avrdude to use the built-in spidev userspace SPI drivers on linux to communicate to an attached AVR. While this doesn't have much application for desktop or laptop computers, for single-board linux computers such as the Raspberry Pi or Beaglebone, it allows the single-board computer to be used as a stand-alone AVR programmer with little to no extra hardware. I think this is useful on many levels, including being able to embed an AVR onto a computer with spidev support and have it be in-system programmable by executing a userspace program.

The port switch is used to direct the linuxspi programmer to which SPI bus to use. The baud rate switch can be used to change the frequency at which the SPI bus operates.

The comments on my blog post show that most people using it have been able to get it to work and in many cases, using a lower frequency on the SPI bus via the baud rate switch solved communication issues.

The patch was created by git, so it probably has to be applied with the -p1 flag to strip off the a/ and b/ that git likes to prepend to path names.

Kevin Cuzner <kcuzner>



Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by chrstphrchvz (Voted in favor of this item)
  • -unavailable- added by bevice (Voted in favor of this item)
  • -unavailable- added by robstar (Voted in favor of this item)
  • -unavailable- added by tchilton (Posted a comment)
  • -unavailable- added by tchilton (Voted in favor of this item)
  • -unavailable- added by kcuzner (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 07 Jan 2018 03:57:45 PM UTCchrstphrchvzCarbon-Copy-=>Added chrstphrchvz
    Wed 02 Nov 2016 10:50:12 AM UTCbeviceCarbon-Copy-=>Added bevice
    Fri 14 Oct 2016 02:09:17 AM UTCrobstarCarbon-Copy-=>Added robstar
    Sat 03 May 2014 08:44:56 AM UTCtchiltonCarbon-Copy-=>Added tchilton
    Thu 31 Oct 2013 04:10:19 PM UTCkcuznerAttached File-=>Added 0001-Added-linuxspi-programmer-type-using-spidev.patch, #29517

    Back to the top

    Powered by Savane 3.1-cleanup1