Skip to content

TPI with avrdude does not seem to be working #20

@fightforlife

Description

@fightforlife

Hello, I am not sure if this repo is still active.

I currently have problems programming TPI (attiny10) with Scratchmonkey.
I applied your patch and recompiles avrdude, but I get the same results as with the original avrdude.
"Error stk500v2_program_enable() stk500v2.c 1030: program enable instruction not defined for part ATtiny10"

There was also an issue on avrdude: avrdudes/avrdude#2046
Which was closed because scratchmonkey was added as an stk500v2 equivalent, which does not support TPI.

Is there something we can do here to enable TPI with avrdude?

$ avrdude -c scratchmonkey -P /dev/ttyUSB0 -p t10 -vvv
Avrdude version 8.1-20250625 (b4403627)
Copyright see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

System wide configuration file is /usr/local/etc/avrdude.conf
User configuration file /root/.avrduderc does not exist

Using port            : /dev/ttyUSB0
Using programmer      : scratchmonkey
Ser_recv(): programmer is not responding
Error stk500v2_recv() stk500v2.c 692: timeout
Ser_recv(): programmer is not responding
Error stk500v2_recv() stk500v2.c 692: timeout
Stk500v2_getsync(): found SCRATCHMONKEY programmer
AVR part              : ATtiny10
Programming modes     : TPI

Memory       Size  Pg size
--------------------------
flash        1024       16
fuse            1       16
lockbits        1       16
io             64        1
sram           32        1
calibration     1       16
signature       3       16

Variants       Package  F max   T range         V range       
--------------------------------------------------------------
ATtiny10-MAHR  UDFN8    12 MHz  [-40 C, 125 C]  [1.8 V, 5.5 V]
ATtiny10-TS8R  SOT23-6  10 MHz  [-40 C, 125 C]  [1.8 V, 5.5 V]
ATtiny10-TSHR  SOT23-6  12 MHz  [-40 C,  85 C]  [1.8 V, 5.5 V]

Programmer type       : STK500V2
Description           : Atmel STK500 v2
Programmer model      : SCRATCHMONKEY
HW version            : 0
FW Version Controller : 2.00
Topcard               : Unknown
Vtarget               : 5.0 V
Varef                 : 5.0 V
Oscillator            : Off
SCK period            : 4.0 us
XTAL frequency        : 16.000000 MHz
Error stk500v2_program_enable() stk500v2.c 1030: program enable instruction not defined for part ATtiny10
Error main() main.c 1632: initialization failed  (rc = -1)
 - double check the connections and try again
 - use -B to set lower the bit clock frequency, e.g. -B 125kHz
 - use -F to override this check

Avrdude done.  Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions