From nobody Thu Apr 7 11:33:18 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 8E0C31A8AF8D for ; Thu, 7 Apr 2022 11:33:29 +0000 (UTC) (envelope-from Axel.Rau@chaos1.de) Received: from mailout4.lrau.net (mailout4.lrau.net [IPv6:2a05:bec0:26:2::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 "mailout4.lrau.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KYzlr1MTgz4sfD for ; Thu, 7 Apr 2022 11:33:28 +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=To:Date:Message-Id:Subject:Mime-Version:Content-Transfer-Encoding :Content-Type:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pz+XDFoibwDQY4cq3TSBIWZcwrTzlxzoaRyF1e/Spfs=; b=IUMsnpVNdE2tBqgq+HxNPfNRO8 pV31xx7Itv4ei9FBooK+EpNWvx8b5G+vCgK6dkg60MsdSDMKSKAPk2J//s168Vt+YqQnu3ZIx4hI5 J7GgZW23jSsTRwUBWcRxB/s6mUdbBJtlxL/fk3p0/9MA5hu+LcZt22iv6cY0i2elr0pQRuQryq1SJ tSL8GQx8Pi/N2tUYksR5Ck2rHxfX9U8Vzs2vREpDc2wz4l2RY+xWyevrtlw7pzfZvrNYn6bmfpZgp MPApF9RFe5QZalP+Yz2LL9Sooe2FvTgdkHbFdatrsRsUEjqGmBRkWjGffGI8YuSZNeBD9STF6Dt1J S7rpSjmw==; Received: from [2a05:bec0:26:2::74] (helo=imap4.lrau.net) by mailout4.lrau.net with esmtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1ncQO7-000F47-3Z for hardware@freebsd.org; Thu, 07 Apr 2022 11:33:19 +0000 Received: from Axel.Rau@Chaos1.DE by imap5.lrau.net (Archiveopteryx 3.2.0) with esmtpsa id 1649331198-84259-82485/7/7; Thu, 7 Apr 2022 11:33:18 +0000 From: Axel Rau Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: timeouts on USB ISP programmer Message-Id: <3A781DFA-1E2C-41A5-8053-C90A806244DC@Chaos1.DE> Date: Thu, 7 Apr 2022 13:33:18 +0200 To: hardware@freebsd.org X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4KYzlr1MTgz4sfD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chaos1.de header.s=email1 header.b=IUMsnpVN; dmarc=none; spf=none (mx1.freebsd.org: domain of Axel.Rau@chaos1.de has no SPF policy when checking 2a05:bec0:26:2::73) smtp.mailfrom=Axel.Rau@chaos1.de X-Spamd-Result: default: False [-2.82 / 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.92)[-0.921]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[chaos1.de:dkim]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[chaos1.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[chaos1.de:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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:2::73:from] X-ThisMailContainsUnwantedMimeParts: N Hi all, my DIAMEX-AVR-USB gets timeouts while talking to the target: - - - root@home2l:/ # avrdude -c stk500v2 -p t85 -P /dev/cuau1 -t -v -i 10 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" User configuration file does not exist or is not a regular = file, skipping Using Port : /dev/cuau1 Using Programmer : stk500v2 Setting isp clock delay : 10 avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer AVR Part : ATtiny85 Chip Erase delay : 4500 us PAGEL : P00 BS2 : P00 RESET disposition : possible i/o RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page = Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages = MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ = ----- ----- --------- eeprom 65 6 4 0 no 512 4 0 = 4000 4500 0xff 0xff flash 65 6 32 0 yes 8192 64 128 = 4500 4500 0xff 0xff signature 0 0 0 0 no 3 1 0 = 0 0 0x00 0x00 lock 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 lfuse 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 hfuse 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 efuse 0 0 0 0 no 1 1 0 = 9000 9000 0x00 0x00 calibration 0 0 0 0 no 1 1 0 = 0 0 0x00 0x00 Programmer Type : STK500V2 Description : Atmel STK500 Version 2.x firmware Programmer Model: Unknown avrdude: stk500v2_ReceiveMessage(): timeout . . . avrdude: stk500v2_getsync(): timeout communicating with programmer avrdude: stk500v2_command(): failed miserably to execute command 0x11 avrdude: stk500v2_disable(): failed to leave programming mode root@home2l:/ # usbconfig ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen0.2: at usbus0, cfg=3D0 md=3DHOST = spd=3DLOW (1.5Mbps) pwr=3DON (100mA) ugen0.3: at usbus0, cfg=3D0 md=3DHOST = spd=3DLOW (1.5Mbps) pwr=3DON (100mA) ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (500mA) root@home2l:/ # usbconfig -d ugen0.4 dump_device_desc ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (500mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0200=20 bDeviceClass =3D 0x0002 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0040=20 idVendor =3D 0x16c0=20 idProduct =3D 0x2a9b=20 bcdDevice =3D 0x4340=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 <19331-49101-552> bNumConfigurations =3D 0x0001=20 - - - Loading uftdi.ko did not help. Any help appreciated, Axel =2D-- PGP-Key: CDE74120 =E2=98=80 computing @ chaos claudius