Skip to content

TPI support for linuxgpio and usbtiny#8

Open
dmosberger wants to merge 3 commits into
kcuzner:masterfrom
dmosberger:master
Open

TPI support for linuxgpio and usbtiny#8
dmosberger wants to merge 3 commits into
kcuzner:masterfrom
dmosberger:master

Conversation

@dmosberger

Copy link
Copy Markdown

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).

  Can't export GPIO 0, already exported/busy?: Device or resource busy

This error gets triggered since pins PPI_AVR_VCC and PPI_AVR_BUFF
appear to default to ~0 so if avrdude.conf does not explicitly define
them to some other unique pins, we end up trying to export gpio 0
multiple times, triggering the error.
This makes it possible to program the smaller chips, such as ATtiny9
via TPI.
This makes it possible to program the smaller chips such as ATtiny9
via TPI using the usbtiny interface.  Tested with sparkfun AVR Pocket
Programmer.
@kcuzner

kcuzner commented Mar 5, 2016

Copy link
Copy Markdown
Owner

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

Copy link
Copy Markdown
Author

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

E3V3A commented Jan 29, 2019

Copy link
Copy Markdown

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

@dmosberger

Copy link
Copy Markdown
Author

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

Copy link
Copy Markdown

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants