From nobody Sun Apr 10 23:28:46 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 270761A9366A for ; Sun, 10 Apr 2022 23:29:03 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kc7V6065Lz4gg9 for ; Sun, 10 Apr 2022 23:29:01 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x232.google.com with SMTP id e4so14320093oif.2 for ; Sun, 10 Apr 2022 16:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/73zFS4KbrSVnFdWS3r4zsDkYgu1b/pcpsfxPnPVygo=; b=jBaqKGaeQiB3ZysW2cnNmlNFI1tm2Jsq5QUb5XVl219CO/+eLYA7QAKvcnLFMW9iS2 6cm9BLbqFfHGvOZU+h489Tkntm6lnosENxYEewkhzIvSG0SViFKwbqMlNEfnP9Mq358O ZCJsocd8jXF7/91ZzfKV8MIQSNlL0vCNrJ0OS6dFx7hGyq/MWZEP4ULjx+Ry/Zi7Cp/n eUYGOY0YKJ31Xqfsag2zsul7OSNLTip+27RXncrFVz8sKZAP4WTXnNTniZbRr/XKnIs4 aVk0C3E9A/i1r5xJm6SNQZyJbvybEQnPfqG/+/8BaLEGY7XFKDmIX0Nu02IgT3CmdLKZ HZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/73zFS4KbrSVnFdWS3r4zsDkYgu1b/pcpsfxPnPVygo=; b=1EQ5VM6oe0B6fKwq3NlOVbwwLZhEfxBB8tHzTBBY1TOJc1mn/Mj5b8RXMu/K3CAIKm c3GDK7gvMaOIBz24ItmF4l4kUA1LTaoMpk59FcGZfIO5RokCOfGAj4IMWD7Zcw62rKGJ 6hhioOo9Pkt1CiAiU3gHdI7CK1R0IGduNzwmNbfUlWCg/UPP/M1ZMg11jpFmZmiyNLEE jfNNivf/4sMlXuUwihM/roomu7ytttJ62D8slwyNYpX7SXmEAMlFybsjTwOtHmK2SPES guNoeXmoqPfuLVJYwLKxJz2eJmYKZgxLehaekyG9hFswrmqT5/MWFjnJ93pBa2P4w89l ReDw== X-Gm-Message-State: AOAM531DnFd7QCgucx3p+GBmX9s10AtyzzPuidBH2Gs8us6muA1DWPv5 Rl4kwA/+SD7G9mQsYg95pKHZNu/szYaXnLUt X-Google-Smtp-Source: ABdhPJx+S9564uWRd6mSoGC9f2cW1qM/u3BMvAPfLGnhrIpOi+F0pfjnq1CM0LOvt5C4AOSJnWDrpA== X-Received: by 2002:aca:a817:0:b0:2ef:9e75:c012 with SMTP id r23-20020acaa817000000b002ef9e75c012mr3830209oie.93.1649633340497; Sun, 10 Apr 2022 16:29:00 -0700 (PDT) Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com. [209.85.160.53]) by smtp.gmail.com with ESMTPSA id i28-20020a9d4a9c000000b005ce06a77de2sm12282568otf.48.2022.04.10.16.28.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 16:28:59 -0700 (PDT) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-d39f741ba0so15434444fac.13 for ; Sun, 10 Apr 2022 16:28:59 -0700 (PDT) X-Received: by 2002:a05:6870:248c:b0:d7:19f3:a52c with SMTP id s12-20020a056870248c00b000d719f3a52cmr12434935oaq.149.1649633339668; Sun, 10 Apr 2022 16:28:59 -0700 (PDT) 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 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> In-Reply-To: From: Tomek CEDRO Date: Mon, 11 Apr 2022 01:28:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: timeouts on USB ISP programmer To: Axel Rau Cc: Hans Petter Selasky , hardware@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Kc7V6065Lz4gg9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=jBaqKGae; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::232) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.30 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[hardware@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::232:from,209.85.160.53:received]; MLMMJ_DEST(0.00)[hardware]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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: >> >> 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: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0002 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x16c0 <-- THIS IS USB VID idProduct = 0x2a9b <-- THIS IS USB PID bcdDevice = 0x4340 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <19331-49101-552> bNumConfigurations = 0x0001 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info