Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2022 01:28:46 +0200
From:      Tomek CEDRO <tomek@cedro.info>
To:        Axel Rau <Axel.Rau@chaos1.de>
Cc:        Hans Petter Selasky <hps@selasky.org>, hardware@freebsd.org
Subject:   Re: timeouts on USB ISP programmer
Message-ID:  <CAFYkXjkoUviaDZarMxr_8C2jD3yN_ajB90=j5TvPn8Q0ACO7xA@mail.gmail.com>
In-Reply-To: <BF8BDA54-4BC0-4B61-9330-600047FC7A05@Chaos1.DE>
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> <EB9AB05C-3095-4419-9FF3-43E853923ABC@Chaos1.DE> <CAFYkXjk=9iEg%2B2pTZrmJVVNgUQJi%2BJYzs2xExyDDJ4Po_W8Bpg@mail.gmail.com> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> <CAFYkXjnypDg=7WzTZQbvORJwq0XjtSA9bpyS=BYgVLjYZ6-r=A@mail.gmail.com> <BF8BDA54-4BC0-4B61-9330-600047FC7A05@Chaos1.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 11, 2022 at 1:08 AM Axel Rau <Axel.Rau@chaos1.de> wrote:
> Am 10.04.2022 um 23:59 schrieb Tomek CEDRO <tomek@cedro.info>:
>> Okay, your local `~/.avrduderc` configuration needs an update. Remove
>> all from file and put only this:
>>
>> default_programmer = "diamex-avr-usb";
>> programmer
>>  id    = "diamex-avr-usb";
>>  desc  = "Diamex AVR USB Programmer";
>>  type  =  "stk500v2";
>>  connection_type = usb;
>>  usbvid     = 0x16c0;
>>  usbpid     = 0x2a9b;
>> ;
>>
>> Then run:
> avrdude -c diamex-avr-usb -p t85 -vvv -t
>
> root@home2l:~ # avrdude -c diamex-avr-usb -p t85 -vvv -t
>
> 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 "/root/.avrduderc"
>
>          Using Port                    : usb
>          Using Programmer              : diamex-avr-usb
> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)
>
> avrdude done.  Thank you.
>
> root@home2l:~ # avrdude  -p t85 -vvv -t
>
> 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 "/root/.avrduderc"
>
>          Using Port                    : usb
>          Using Programmer              : diamex-avr-usb
> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)
>
> avrdude done.  Thank you.
>
> root@home2l:~ # cat ~/.avrduderc
> default_programmer = "diamex-avr-usb";
> programmer
>  id    = "diamex-avr-usb";
>  desc  = "Diamex AVR USB Programmer";
>  type  =  "stk500v2";
>  connection_type = usb;
> usbvid     = 0x03eb;
> usbpid     = 0x2104;
> ;
> - - -
> usbvid and usbpid are ignored:
> - - -

Why do you think VID:PID is ignored? You have entered different
VID:PID in the configuration than I have provided.

default_programmer = "diamex-avr-usb";
programmer
  id    = "diamex-avr-usb";
  desc  = "Diamex AVR USB Programmer";
  type  =  "stk500v2";
  connection_type = usb;
  usbvid     = 0x16c0;
  usbpid     = 0x2a9b;
;

You need to provide VID:PID of Your Diamex interface that is
VID=0x16c0 PID=0x2a9b. Your configuration contains VID=0x03eb
PID=0x2104 this is why interface cannot be found. Please copy-paste
exactly as provided above.

Where I know VID:PID of your interface? From previous message.

root@home2l:/ # usbconfig -d 0.4 dump_device_desc
ugen0.4: <ERFOS AVR-ISP2> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=ON (500mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0002  <Communication device>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x16c0 <-- THIS IS USB VID
  idProduct = 0x2a9b  <-- THIS IS USB PID
  bcdDevice = 0x4340
  iManufacturer = 0x0001  <ERFOS>
  iProduct = 0x0002  <AVR-ISP2>
  iSerialNumber = 0x0003  <19331-49101-552>
  bNumConfigurations = 0x0001

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjkoUviaDZarMxr_8C2jD3yN_ajB90=j5TvPn8Q0ACO7xA>