kcuzner / avrdude

avrdude with a Linux SPI programmer type
http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/
107 stars 68 forks source link

TPI support for linuxgpio and usbtiny #8

Open dmosberger opened 8 years ago

dmosberger commented 8 years ago

These commits make it possible to program ATtiny4, ATtiny5, ATtiny9 or ATTtiny10 through TPI using the linuxgpio driver (e.g., on Raspberry PI) or the usbtiny driver (e.g., with the Sparkfun Pocket AVR Programmer).

kcuzner commented 8 years ago

You're probably going to want to submit this to the mainline avrdude project here: http://savannah.nongnu.org/projects/avrdude/

This repository contains changes for the linuxspi driver that has not yet been accepted into the mainline.

dmosberger commented 8 years ago

I did submit patches at Savannah:

  1. https://savannah.nongnu.org/patch/?8922
  2. https://savannah.nongnu.org/patch/?8923
  3. https://savannah.nongnu.org/patch/?8924

Is there anything else I should/could do?

E3V3A commented 5 years ago

Strange... some of these has already been fixed in svn, while others ignored... What is the real status here???

dmosberger commented 5 years ago

I don't really know. We have since switched to using FTDI cables for TPI programming. See:

Not that these have generated a lot of feedback... ;-/

Steven-Wright commented 3 years ago

@E3V3A & @dmosberger

Thought I'd follow up - as I've been on a quest to find more information about TPI support for the USBtiny. While David's patch (8924) adding support was added, there hasn't been a new release of AVRDUDE since 2016. So those hoping to use it will need to build from source.

As noted in usbtiny.c, using TPI requires connecting MOSI and MISO with a 1k Ohm resistor although others have had success with a 330 Ohm resistor.