Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2022 17:51:02 +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:  <CAFYkXj=PG1ksWVk4o56jF=okfsAzVhU-0Bn%2BT53_aNznHRpqUw@mail.gmail.com>
In-Reply-To: <5E302425-D601-4C5D-B8B6-E6295B242B66@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> <CAFYkXjkoUviaDZarMxr_8C2jD3yN_ajB90=j5TvPn8Q0ACO7xA@mail.gmail.com> <5E302425-D601-4C5D-B8B6-E6295B242B66@Chaos1.DE>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 11, 2022 at 7:35 AM Axel Rau <Axel.Rau@chaos1.de> wrote:
> 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     = 0x16c0;
>  usbpid     = 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)

Wow, this is strange, the programmer is clearly defined with different
VID:PID than avrdude expects :-(

Maybe try full call:

avrdude -c diamex-avr-usb -P usb:/dev/cuaU0 -p t85 -vvv -t

or

avrdude -c stk500v2 -P usb:/dev/cuaU0 -p t85 -vvv -t

or

avrdude -c avrispmkII -P usb:/dev/cuaU0 -p t85 -vvv -t


If that does not work I am out of ideas, sorry, maybe opening an Issue
on the project github repo could help?

Are you sure that diamex-avr-usb is not defined anywhere else (for
instance in /usr/local/etc/avrdude.conf)? We are missing some small
important detail here :-P

What I did at some point was building avrdude port WITH_DEBUG=1 flag
to make, then it is possible to debug it, setting breakpoint at
`usbdev_open` helped me understand -P handling.. maybe that would also
help finding the issue here :-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXj=PG1ksWVk4o56jF=okfsAzVhU-0Bn%2BT53_aNznHRpqUw>