From nobody Mon Apr 11 05:34:56 2022 X-Original-To: hardware@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 29C9F1A8419D for ; Mon, 11 Apr 2022 05:35:01 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) Received: from mailout5.lrau.net (mailout5.lrau.net [IPv6:2a05:bec0:26:5::73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailout5.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KcHcN1fVcz4j9r for ; Mon, 11 Apr 2022 05:35:00 +0000 (UTC) (envelope-from Axel.Rau@Chaos1.DE) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=chaos1.de; s=email1; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version: Content-Type:Message-Id:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xlv9AzQFW49H/QjDfid5xPcdEMSHNbHTvzx0psc+qDA=; b=ttQCszYLHjISmZcpPmus2vvf6O tVYhTjnrk0EONCZrEa2FqdPR0oyITDStsRMM18JCO1AmKQVn/syV2bEqaiIPpm3Udg96xs78v/0Hb Ye93e6D9lY1K1J6Z8GOZUEEw6M0SiDAHrk3wJ0ies4qVNf/A/hfSNak+Y0D+RSJ7N+Y4/S1koPAlD DniU74jCiAldrt15bxE5W7OmFpj7SKSWqBbWta3LJYzsQL8/9+CHdaooe2sRyJWAsmhu0YZqMZhGD AsBQ5QhYtwzr3Avcc70XVA80XQGv7rqGlK1nLuVSgOBbuLwEFn2eYqd18SY1fU/pcN74HqM/+uiiq sLL84PwA==; Received: from [2a05:bec0:26:5::74] (helo=imap5.lrau.net) by mailout5.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ndmhX-0002Db-7S; Mon, 11 Apr 2022 05:34:59 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649655297-45319-42070/7/10; Mon, 11 Apr 2022 05:34:57 +0000 From: Axel Rau Message-Id: <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE> Content-Type: multipart/alternative; boundary="Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971" List-Id: General discussion of FreeBSD hardware List-Archive: https://lists.freebsd.org/archives/freebsd-hardware List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hardware@freebsd.org Mime-Version: 1.0 Subject: Re: timeouts on USB ISP programmer Date: Mon, 11 Apr 2022 07:34:56 +0200 In-Reply-To: Cc: Hans Petter Selasky , hardware@freebsd.org To: Tomek CEDRO 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> <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE> <24AA646A-698B-4D41-9668-3F9F99732D02@Chaos1.DE> <1A94816D-E3C1-4488-A5A9-784BAC68AE74@Chaos1.DE> <13D17C8D-D67B-47E8-BB64-A8E32267C669@Chaos1.DE> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KcHcN1fVcz4j9r X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=ttQCszYL; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@Chaos1.DE has no SPF policy when checking 2a05:bec0:26:5::73) smtp.mailfrom=Axel.Rau@Chaos1.DE X-Spamd-Result: default: False [-1.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[chaos1.de:s=email1]; NEURAL_HAM_MEDIUM(-0.60)[-0.596]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[Chaos1.DE]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.19)[0.190]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chaos1.de:+]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:197071, ipnet:2a05:bec0::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[2a05:bec0:26:5::73:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 11.04.2022 um 01:28 schrieb Tomek CEDRO : >=20 > On Mon, Apr 11, 2022 at 1:08 AM Axel Rau wrote: >> Am 10.04.2022 um 23:59 schrieb Tomek CEDRO : >>> Okay, your local `~/.avrduderc` configuration needs an update. Remove >>> all from file and put only this: >>>=20 >>> default_programmer =3D "diamex-avr-usb"; >>> programmer >>> id =3D "diamex-avr-usb"; >>> desc =3D "Diamex AVR USB Programmer"; >>> type =3D "stk500v2"; >>> connection_type =3D usb; >>> usbvid =3D 0x16c0; >>> usbpid =3D 0x2a9b; >>> ; >>>=20 >>> Then run: >> avrdude -c diamex-avr-usb -p t85 -vvv -t >>=20 >> root@home2l:~ # avrdude -c diamex-avr-usb -p t85 -vvv -t >>=20 >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >>=20 >> System wide configuration file is "/usr/local/etc/avrdude.conf= " >> User configuration file is "/root/.avrduderc" >>=20 >> Using Port : usb >> Using Programmer : diamex-avr-usb >> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x21= 04) >>=20 >> avrdude done. Thank you. >>=20 >> root@home2l:~ # avrdude -p t85 -vvv -t >>=20 >> avrdude: Version 6.4 >> Copyright (c) Brian Dean, http://www.bdmicro.com/ >> Copyright (c) Joerg Wunsch >>=20 >> System wide configuration file is "/usr/local/etc/avrdude.conf= " >> User configuration file is "/root/.avrduderc" >>=20 >> Using Port : usb >> Using Programmer : diamex-avr-usb >> avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x21= 04) >>=20 >> avrdude done. Thank you. >>=20 >> root@home2l:~ # cat ~/.avrduderc >> default_programmer =3D "diamex-avr-usb"; >> programmer >> id =3D "diamex-avr-usb"; >> desc =3D "Diamex AVR USB Programmer"; >> type =3D "stk500v2"; >> connection_type =3D usb; >> usbvid =3D 0x03eb; >> usbpid =3D 0x2104; >> ; >> - - - >> usbvid and usbpid are ignored: >> - - - >=20 > Why do you think VID:PID is ignored? Because it does not matter, what I put into usbvid/usbpid, the resulting = error message is always: - - - avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) - - - Why that 0x03eb:0x2104 in the error message? > You have entered different > VID:PID in the configuration than I have provided. I provided 3 results with different usbvid/usbpid, the 1st one was your = advice. Sorry, if I was unclear. Again this is the variant, you provided with the result: - - - root@home2l:~ # cat ~/.avrduderc default_programmer =3D "diamex-avr-usb"; programmer id =3D "diamex-avr-usb"; desc =3D "Diamex AVR USB Programmer"; type =3D "stk500v2"; connection_type =3D usb; usbvid =3D 0x16c0; usbpid =3D 0x2a9b; ; 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. >=20 > default_programmer =3D "diamex-avr-usb"; > programmer > id =3D "diamex-avr-usb"; > desc =3D "Diamex AVR USB Programmer"; > type =3D "stk500v2"; > connection_type =3D usb; > usbvid =3D 0x16c0; > usbpid =3D 0x2a9b; > ; >=20 > You need to provide VID:PID of Your Diamex interface that is > VID=3D0x16c0 PID=3D0x2a9b. Your configuration contains VID=3D0x03eb > PID=3D0x2104 this is why interface cannot be found. Please copy-paste > exactly as provided above. >=20 > Where I know VID:PID of your interface? From previous message. >=20 > root@home2l:/ # usbconfig -d 0.4 dump_device_desc > ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) > pwr=3DON (500mA) >=20 > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0200 > bDeviceClass =3D 0x0002 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x16c0 <-- THIS IS USB VID > idProduct =3D 0x2a9b <-- THIS IS USB PID > bcdDevice =3D 0x4340 > iManufacturer =3D 0x0001 > iProduct =3D 0x0002 > iSerialNumber =3D 0x0003 <19331-49101-552> > bNumConfigurations =3D 0x0001 OK. Thanks for the explanation. Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius --Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
=

= Am 11.04.2022 um 01:28 schrieb Tomek CEDRO <tomek@cedro.info>:

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 =3D = "diamex-avr-usb";
programmer
id   =  =3D "diamex-avr-usb";
desc  =3D "Diamex AVR = USB Programmer";
type  =3D  "stk500v2";
connection_type =3D usb;
usbvid   &n= bsp; =3D 0x16c0;
usbpid     =3D = 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/
      &nbs= p; Copyright (c) Joerg Wunsch

=         System wide configuration= file is "/usr/local/etc/avrdude.conf"
   &= nbsp;    User configuration file is "/root/.avrduderc= "

       = ; Using Port          &= nbsp;         : usb
        Using = Programmer           &n= bsp;  : diamex-avr-usb
avrdude: usbdev_open(): = did not find any USB device "usb" (0x03eb:0x2104)

avrdude done.  Thank you.

ro= ot@home2l:~ # avrdude  -p t85 -vvv -t

a= vrdude: Version 6.4
      &n= bsp; Copyright (c) Brian Dean, http://www.bdmicro.com/
   &= nbsp;    Copyright (c) Joerg Wunsch
        System wide = configuration file is "/usr/local/etc/avrdude.conf"
=         User configuration file = is "/root/.avrduderc"

   &nb= sp;    Using Port       = ;            =  : usb
       &nbs= p;Using Programmer          =     : diamex-avr-usb
avrdude: usbdev_op= en(): did not find any USB device "usb" (0x03eb:0x2104)
avrdude done.  Thank you.

r= oot@home2l:~ # cat ~/.avrduderc
default_programmer =3D = "diamex-avr-usb";
programmer
id   =  =3D "diamex-avr-usb";
desc  =3D "Diamex AVR = USB Programmer";
type  =3D  "stk500v2";
connection_type =3D usb;
usbvid   &nb= sp; =3D 0x03eb;
usbpid     =3D = 0x2104;
;
- - -
usbvid and = usbpid are ignored:
- - -

Why do you think VID:PID is ignored?
<= div>Because it does not matter, what I put into usbvid/usbpid, the = resulting error message is always:
- - -
avrdude: usbdev_open(): did not find any USB device = "usb" (0x03eb:0x2104)
- - -
Why that 0x03eb:0x2104 in the error message?

You have = entered different
VID:PID in the configuration than I have = provided.

I = provided 3 results with different usbvid/usbpid, the 1st one was your = advice. Sorry, if I was unclear.
Again this is the variant, = you provided with the result:
- - -
root= @home2l:~ # cat ~/.avrduderc
default_programmer =3D = "diamex-avr-usb";
programmer
 id    =3D "diamex-avr-usb";
 desc  =3D "Diamex AVR USB Programmer";
=
 type  =3D  "stk500v2";
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; = line-height: normal; font-family: Monaco; background-color: rgb(255, = 255, 255);" class=3D""> connection_type =3D usb;
 usbvid     =3D 0x16c0;
 usbpid     =3D 0x2a9b;
;
=



default_programmer =3D "diamex-avr-usb";
program= mer
 id    =3D "diamex-avr-usb";
 desc  =3D "Diamex AVR USB Programmer";
 type  =3D  "stk500v2";
=  connection_type =3D usb;
 usbvid   &n= bsp; =3D 0x16c0;
 usbpid     = ;=3D 0x2a9b;
;

You need to = provide VID:PID of Your Diamex interface that is
VID=3D0x16= c0 PID=3D0x2a9b. Your configuration contains VID=3D0x03eb
P= ID=3D0x2104 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=3D0 md=3DHOST = spd=3DFULL (12Mbps)
pwr=3DON (500mA)

 bLength =3D 0x0012
 bDescriptorType= =3D 0x0001
 bcdUSB =3D 0x0200
=  bDeviceClass =3D 0x0002  <Communication device>
 bDeviceSubClass =3D 0x0000
 bDevice= Protocol =3D 0x0000
 bMaxPacketSize0 =3D 0x0040
 idVendor =3D 0x16c0 <-- THIS IS USB VID
 idProduct =3D 0x2a9b  <-- THIS IS USB PID
=  bcdDevice =3D 0x4340
 iManufacturer =3D = 0x0001  <ERFOS>
 iProduct =3D 0x0002 =  <AVR-ISP2>
 iSerialNumber =3D 0x0003 =  <19331-49101-552>
 bNumConfigurations = =3D 0x0001
<= br class=3D"">
OK. Thanks for the explanation.

Axel
---
PGP-Key: CDE74120  =E2=98=80 =  computing @ chaos claudius

--Apple-Mail=_419A7FE8-6CBF-4370-A5BB-8B5582926971--