Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2022 18:31:50 +0200
From:      Tomek CEDRO <tomek@cedro.info>
To:        Tomek CEDRO <tomek@cedro.info>
Cc:        Axel Rau <Axel.Rau@chaos1.de>, Hans Petter Selasky <hps@selasky.org>, hardware@freebsd.org
Subject:   Re: timeouts on USB ISP programmer
Message-ID:  <CAFYkXjkpUuiRi25ecQYHemcTmywbqWB602kG53qu8a=vm%2BYthw@mail.gmail.com>
In-Reply-To: <CAFYkXj=w6aTh8LGy_aE26fB-1brjgEHr_VRfugggBP5FmooNow@mail.gmail.com>
References:  <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> <34a747ea-2ee5-660f-71c6-dc00d5de337f@selasky.org> <9334c4f0-3ecf-c046-420f-516e39379981@selasky.org> <976BDBEB-8B57-4541-A0B7-3F2C89498DC6@Chaos1.DE> <7190bdde-22bc-79ee-06d0-d0114a3ffbad@selasky.org> <CAFYkXj=HMdxZG%2B8x0gpLCDy8cbu_qOpFqcN37RO9EG=WOBHkqw@mail.gmail.com> <CAFYkXjmjnFX1a3%2BCQxAxdwX=-oASSEWLdzrmx=%2B4QbX3_Og2Gw@mail.gmail.com> <CAFYkXjmgLi0F4gLVWQxtVwS6tCXCni%2BxU2-7KQM4ve%2B%2B-aEiBw@mail.gmail.com> <CAFYkXjnG5uOzF5_BbNZUgzBzTN8hpU9RmTTh1h_KDZ0EonZgEQ@mail.gmail.com> <CAFYkXjnbneNUszR8ZwS50xY8924uvCQyYQ9d3ohT_t1HZrjmDw@mail.gmail.com> <CAFYkXjmf8DpZw5hQ6Cc_FBurHufKNHhKGYiXpK%2BArB0SGCbqsg@mail.gmail.com> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <CAFYkXjnwvba60u3_tRMReEiyb5dohNZDLoenZWieNB2q_c_-0w@mail.gmail.com> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <CAFYkXjk2TgdC65j1YZqYw2AHn2zMVR2uZ52NTF8jTGVPRV60sg@mail.gmail.com> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <CAFYkXjkCZopGV2vOEtzNg_Ut76WuyHQ5NxxVOjoY-Sy-QNuGHw@mail.gmail.com> <FF735DA2-B675-4E3D-B247-E1E3CAD735CF@Chaos1.DE> <CAFYkXj=w6aTh8LGy_aE26fB-1brjgEHr_VRfugggBP5FmooNow@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Okay so the KT-LINK (FT2232H based) interface is ready :-)

avrdude did not forsee the buffer switch between read / write, that
would allow only one pin connection to Tiny10, but connecting with
external resistors works too ;-)

TDO --[470R]-- TPIDATA --[470]-- TDI


Example run below:



hexagon% avrdude -c ktlink -p t10 -B 100khz

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)

avrdude done.  Thank you.



hexagon% avrdude -c ktlink -p t10 -B 100khz -vvv

avrdude: Version 6.4
         Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg Wunsch

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/XXX/.avrduderc"

         Using Port                    : usb
         Using Programmer              : ktlink
         Setting bit clk period        : 10.0
I avrftdi_open(713): Using device VID:PID 0403:bbe2 and SN '(null)' on
interface A.
D write_flush(478): Setting pin direction (0x0000) and value (0x0000)
I set_frequency(210): Using frequency: 100000
I set_frequency(211): Clock divisor: 0x003b
D avrftdi_check_pins_mpsse(570): Using valid mask mpsse: 0x0000fff8
D avrftdi_check_pins_bb(534): Using valid mask bibanging: 0x0000ffff
I avrftdi_pin_setup(644): Pin direction mask: e523
I avrftdi_pin_setup(645): Pin value mask: 6400
D set_pin(243): Setting pin 15 (ACBUS15) as PGMLED: high (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0xe400)
         AVR Part                      : ATtiny10
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page
               Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
           signature      0     0     0    0 no          3   16      0
    0     0 0x00 0x00
                                  Block Poll               Page
               Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
           fuse           0     0     4    0 no          1   16      0
    0     0 0x00 0x00
                                  Block Poll               Page
               Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
           calibration    0     0     0    0 no          1   16      0
    0     0 0x00 0x00
                                  Block Poll               Page
               Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
           lockbits       0     0     0    0 no          1   16      0
    0     0 0x00 0x00
                                  Block Poll               Page
               Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages
MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
           flash          0     0   128    0 no       1024   16      0
    0     0 0x00 0x00

         Programmer Type : avrftdi
         Description     : KT-LINK FT2232H based interface.

D set_pin(243): Setting pin 5,10,13-14 (ADBUS5, ACBUS10, ACBUS13,
ACBUS14) as BUFF: high (low active)
D write_flush(478): Setting pin direction (0xe523) and value (0x8020)
D set_pin(243): Setting pin 15 (ACBUS15) as PGMLED: low (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0020)
I avrftdi_tpi_initialize(73): Using TPI interface
I avrftdi_tpi_initialize(83): Setting /Reset pin low
D set_pin(243): Setting pin 8 (ACBUS8) as RESET: low (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0020)
D set_pin(243): Setting pin 0 (ADBUS0) as SCK: low (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0020)
D set_pin(243): Setting pin 1 (ADBUS1) as MOSI: high (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0022)
D set_pin(243): Setting pin 8 (ACBUS8) as RESET: high (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0122)
D set_pin(243): Setting pin 8 (ACBUS8) as RESET: low (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0022)
I avrftdi_tpi_initialize(98): Sending 16 init clock cycles ...
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)
I avrftdi_tpi_disable(250): Leaving Programming mode.
D set_pin(243): Setting pin 8 (ACBUS8) as RESET: high (high active)
D write_flush(478): Setting pin direction (0xe523) and value (0x0122)
I avrftdi_close(798): LED Mask=0x8000 value =0x0122 &=0x0000
D write_flush(478): Setting pin direction (0x8000) and value (0x0000)

avrdude done.  Thank you.


hexagon% avrdude -c ktlink -p t10 -B 100khz -e


avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude: erasing chip

avrdude done.  Thank you.



hexagon% avrdude -c ktlink -p t10 -B 100khz -t


avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude> dump flash 0 1024
>>> dump flash 0 1024
0000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0030  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0080  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0090  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00a0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00b0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00c0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00d0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0100  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0110  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0120  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0130  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0140  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0150  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0160  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0170  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0180  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0190  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01a0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01b0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01c0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01d0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
01f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0200  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0210  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0220  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0230  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0240  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0250  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0260  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0270  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0280  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0290  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
02a0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
02b0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
02c0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
02d0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
02e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
02f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0300  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0310  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0320  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0330  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0340  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0350  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0360  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0370  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0380  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0390  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
03a0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
03b0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
03c0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
03d0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
03e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
03f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|



hexagon% avrdude -c ktlink -p t10 -B 100khz -U flash:w:hello.bin:r


avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will
be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "hello.bin"
avrdude: writing flash (1024 bytes):

Writing | ################################################## | 100% 2.98s

avrdude: 1024 bytes of flash written
avrdude: verifying flash memory against hello.bin:
avrdude: load data flash data from input file hello.bin:
avrdude: input file hello.bin contains 1024 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.49s

avrdude: verifying ...
avrdude: 1024 bytes of flash verified

avrdude done.  Thank you.


hexagon% avrdude -c ktlink -p t10 -B 100khz -t


avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude> dump flash 0 1024
>>> dump flash 0 1024
0000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00c0  48 45 4c 4c 4f 00 57 4f  52 4c 44 00 3a 2d 29 00  |HELLO.WORLD.:-).|
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0100  43 65 44 65 52 4f 4d 00  57 55 5a 00 48 45 52 45  |CeDeROM.WUZ.HERE|
0110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0160  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0180  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0190  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
01f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0210  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0240  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0250  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0270  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0280  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0290  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
02a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
02b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
02c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
02d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
02e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
02f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0300  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0310  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0320  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0330  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0340  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0350  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0370  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0380  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0390  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
03a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
03b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
03c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
03d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
03e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
03f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|



-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjkpUuiRi25ecQYHemcTmywbqWB602kG53qu8a=vm%2BYthw>