Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Apr 2022 11:08:54 +0200
From:      Axel Rau <Axel.Rau@chaos1.de>
To:        Tomek CEDRO <tomek@cedro.info>
Cc:        hardware@freebsd.org, Hans Petter Selasky <hps@selasky.org>
Subject:   Re: timeouts on USB ISP programmer
Message-ID:  <7CDFB049-241F-4C31-A7B1-A7D6BDE6A002@Chaos1.DE>
In-Reply-To: <CAFYkXjmf8DpZw5hQ6Cc_FBurHufKNHhKGYiXpK%2BArB0SGCbqsg@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Hi Tomek,

> Am 08.04.2022 um 05:33 schrieb Tomek CEDRO <tomek@cedro.info>:
>=20
> Mystery solved ;-)
>=20
> For avrdude `-P` parameter defines the the programmer port __BUT__ (as
> obviously stated in man page) if you use `usb:` device then you need
> to provide programmer SERIAL NUMBER last bytes not the OS serial port
> device ;-)
I have no such serial number on the outside of my DIAMEX-ISP-USB. )-:
All I have is this:

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=20
  bDescriptorType =3D 0x0001=20
  bcdUSB =3D 0x0200=20
  bDeviceClass =3D 0x0002  <Communication device>
  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  <ERFOS>
  iProduct =3D 0x0002  <AVR-ISP2>
  iSerialNumber =3D 0x0003  <19331-49101-552>
  bNumConfigurations =3D 0x0001=20

Would it help to create a section for programmer diamex-isp-usb ?
>=20
> If you run avrdude with `-vvv` switch then you get increased
> verbosity. It will tell you what it found. You will notice that it
> found a device that matches VID:PID pair but not Serial NUMBER of the
> device (not the port) ;-)
>=20
> Details here: https://github.com/avrdudes/avrdude/issues/920
>=20

All I got with -vvv:

avrdude: usbdev_open(): did not find any (matching) USB device "usb:552" =
(0x03eb:0x2104)
avrdude: usbdev_open(): did not find any (matching) USB device "usb:0552"=
 (0x03eb:0x2104)
avrdude: usbdev_open(): did not find any (matching) USB device "usb:0003"=
 (0x03eb:0x2104)
avrdude: usbdev_open(): did not find any (matching) USB device "usb:1552"=
 (0x03eb:0x2104)

I=E2=80=99m still not convinced that this stick does real USB mode =
(instead of serial emulation via ftdi.

I=E2=80=99m willing to buy a quality programmer from ATmel to move on.
Any recommendations?
Please advice.

All I currently need, is burning/flashing/fusing ATtinys:

 avrdude -c stk500v2 -p t861 -P /dev/ttyU1 \
    -U hfuse:w:init.t861.elf \
    -U efuse:w:init.t861.elf \
    -U eeprom:w:init.t861.elf \
    -U flash:w:init.t861.elf

But debugging support would be helpful in the future.

Sorry, I'm a newbie in the MCU business.

Thank you so much for all the time you did spend to help me,
Axel


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


--Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbs=
p-mode: space; line-break: after-white-space;" class=3D"">Hi Tomek,<br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">Am 08.04.2022 um 05:33 schrieb Tomek CEDRO &lt;<a href=3D"mail=
to:tomek@cedro.info" class=3D"">tomek@cedro.info</a>&gt;:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">Myste=
ry solved ;-)<br class=3D""><br class=3D"">For avrdude `-P` parameter =
defines the the programmer port __BUT__ (as<br class=3D"">obviously =
stated in man page) if you use `usb:` device then you need<br class=3D"">=
to provide programmer SERIAL NUMBER last bytes not the OS serial port<br =
class=3D"">device ;-)<br class=3D""></div></div></blockquote>I have no =
such serial number on the outside of my DIAMEX-ISP-USB. )-:</div><div>All=
 I have is this:</div><div><br class=3D""></div><div><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""><d=
iv style=3D"margin: 0px; font-stretch: normal; line-height: normal;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">root@home2l:/ #<span class=3D"Apple-tab-span" style=3D"white-s=
pace:pre">	</span>usbconfig -d 0.4 dump_device_desc</span></div><div =
style=3D"margin: 0px; font-stretch: normal; line-height: normal;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">ugen0.4: &lt;ERFOS AVR-ISP2&gt; at usbus0, cfg=3D0 md=3DHOST =
spd=3DFULL (12Mbps) pwr=3DON (500mA)</span></div><div style=3D"margin: =
0px; font-stretch: normal; line-height: normal; min-height: 15px;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D""></span><br class=3D""></div><div style=3D"margin: 0px; =
font-stretch: normal; line-height: normal;" class=3D""><span style=3D"fon=
t-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; bLength =3D =
0x0012&nbsp;</span></div><div style=3D"margin: 0px; font-stretch: =
normal; line-height: normal;" class=3D""><span style=3D"font-variant-liga=
tures: no-common-ligatures" class=3D"">&nbsp; bDescriptorType =3D =
0x0001&nbsp;</span></div><div style=3D"margin: 0px; font-stretch: =
normal; line-height: normal;" class=3D""><span style=3D"font-variant-liga=
tures: no-common-ligatures" class=3D"">&nbsp; bcdUSB =3D 0x0200&nbsp;</sp=
an></div><div style=3D"margin: 0px; font-stretch: normal; line-height: =
normal;" class=3D""><span style=3D"font-variant-ligatures: no-common-liga=
tures" class=3D"">&nbsp; bDeviceClass =3D 0x0002&nbsp; &lt;Communication =
device&gt;</span></div><div style=3D"margin: 0px; font-stretch: normal; =
line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: =
no-common-ligatures" class=3D"">&nbsp; bDeviceSubClass =3D 0x0000&nbsp;</=
span></div><div style=3D"margin: 0px; font-stretch: normal; line-height: =
normal;" class=3D""><span style=3D"font-variant-ligatures: no-common-liga=
tures" class=3D"">&nbsp; bDeviceProtocol =3D 0x0000&nbsp;</span></div><di=
v style=3D"margin: 0px; font-stretch: normal; line-height: normal;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; bMaxPacketSize0 =3D 0x0040&nbsp;</span></div><div =
style=3D"margin: 0px; font-stretch: normal; line-height: normal;" =
class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">&nbsp; idVendor =3D 0x16c0&nbsp;</span></div><div style=3D"mar=
gin: 0px; font-stretch: normal; line-height: normal;" class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; =
idProduct =3D 0x2a9b&nbsp;</span></div><div style=3D"margin: 0px; =
font-stretch: normal; line-height: normal;" class=3D""><span style=3D"fon=
t-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; bcdDevice =
=3D 0x4340&nbsp;</span></div><div style=3D"margin: 0px; font-stretch: =
normal; line-height: normal;" class=3D""><span style=3D"font-variant-liga=
tures: no-common-ligatures" class=3D"">&nbsp; iManufacturer =3D 0x0001&nb=
sp; &lt;ERFOS&gt;</span></div><div style=3D"margin: 0px; font-stretch: =
normal; line-height: normal;" class=3D""><span style=3D"font-variant-liga=
tures: no-common-ligatures" class=3D"">&nbsp; iProduct =3D 0x0002&nbsp; =
&lt;AVR-ISP2&gt;</span></div><div style=3D"margin: 0px; font-stretch: =
normal; line-height: normal;" class=3D""><span style=3D"font-variant-liga=
tures: no-common-ligatures" class=3D"">&nbsp; iSerialNumber =3D 0x0003&nb=
sp; &lt;19331-49101-552&gt;</span></div><div style=3D"margin: 0px; =
font-stretch: normal; line-height: normal;" class=3D""><span style=3D"fon=
t-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; bNumConfigura=
tions =3D 0x0001&nbsp;</span></div><div class=3D""><span style=3D"font-va=
riant-ligatures: no-common-ligatures" class=3D""><br class=3D""></span></=
div><div class=3D""><span style=3D"font-variant-ligatures: no-common-liga=
tures" class=3D"">Would it help to create a section for programmer =
diamex-isp-usb ?</span></div></div><blockquote type=3D"cite" class=3D""><=
div class=3D""><div class=3D""><br class=3D"">If you run avrdude with =
`-vvv` switch then you get increased<br class=3D"">verbosity. It will =
tell you what it found. You will notice that it<br class=3D"">found a =
device that matches VID:PID pair but not Serial NUMBER of the<br =
class=3D"">device (not the port) ;-)<br class=3D""><br class=3D"">Details=
 here: <a href=3D"https://github.com/avrdudes/avrdude/issues/920" =
class=3D"">https://github.com/avrdudes/avrdude/issues/920</a><br =
class=3D""><br class=3D""></div></div></blockquote><div><br class=3D""></=
div><div>All I got with -vvv:</div><div><br class=3D""></div><div><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""><span style=3D"font-variant-ligatures: no-common-ligatures" =
class=3D"">avrdude: usbdev_open(): did not find any (matching) USB =
device "usb:552" (0x03eb:0x2104)</span></div><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""><span style=3D"=
font-variant-ligatures: no-common-ligatures" class=3D"">avrdude: =
usbdev_open(): did not find any (matching) USB device "usb:0552" =
(0x03eb:0x2104)</span></div><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"">avrdude: usbdev_open():=
 did not find any (matching) USB device "usb:0003" (0x03eb:0x2104)</div><=
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""><span style=3D"font-variant-ligatures: no-common-l=
igatures" class=3D"">avrdude: usbdev_open(): did not find any (matching) =
USB device "usb:1552" (0x03eb:0x2104)</span></div><div class=3D""><span =
style=3D"font-variant-ligatures: no-common-ligatures" class=3D""><br =
class=3D""></span></div></div><div>I=E2=80=99m still not convinced that =
this stick does real USB mode (instead of serial emulation via&nbsp;ftdi.=
</div><div><br class=3D""></div><div>I=E2=80=99m willing to buy a =
quality programmer from ATmel to move on.</div><div>Any recommendations?<=
/div><div>Please advice.</div><div><br class=3D""></div><div>All I =
currently need, is burning/flashing/fusing ATtinys:</div><div><br =
class=3D""></div><div><div>&nbsp;avrdude -c stk500v2 -p t861 -P /dev/ttyU=
1 \</div><div>&nbsp; &nbsp; -U hfuse:w:init.t861.elf \</div><div>&nbsp; =
&nbsp; -U efuse:w:init.t861.elf \</div><div>&nbsp; &nbsp; -U eeprom:w:ini=
t.t861.elf \</div><div>&nbsp; &nbsp; -U flash:w:init.t861.elf</div><div =
class=3D""><br class=3D""></div></div><div>But debugging support would =
be helpful in the future.</div><div><br class=3D""></div><div>Sorry, I'm =
a newbie in the MCU business.</div><div><br class=3D""></div><div>Thank =
you so much for all the time you did spend to help me,</div><div>Axel</di=
v><div><br class=3D""></div><div><br class=3D""></div><div><span =
style=3D"orphans: 2; text-align: -webkit-auto; widows: 2;" class=3D"">---=
</span></div></div><div class=3D"">
<div dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0); letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tex=
t-stroke-width: 0px; text-decoration: none; word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div=
 dir=3D"auto" style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); =
letter-spacing: normal; text-align: start; text-indent: 0px; text-transfo=
rm: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-wid=
th: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode:=
 space; line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode:=
 space; line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode:=
 space; line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-li=
gatures: normal; font-variant-position: normal; font-variant-caps: =
normal; font-variant-numeric: normal; font-variant-alternates: normal; =
font-variant-east-asian: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; orphans: 2; text-align: -webkit-auto; =
text-indent: 0px; text-transform: none; white-space: normal; widows: 2; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word;=
 -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><di=
v class=3D"">---<br class=3D"">PGP-Key:&nbsp;CDE74120 &nbsp;=E2=98=80 =
&nbsp;computing @ chaos claudius</div></div></div></div></div></div>
</div>


<br class=3D""></body></html>

--Apple-Mail=_7BBA6BB0-F921-4DEE-81A2-A127D725402A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7CDFB049-241F-4C31-A7B1-A7D6BDE6A002>