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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Hi Tomek, > Am 08.04.2022 um 05:33 schrieb Tomek CEDRO <tomek@cedro.info>: > > Mystery solved ;-) > > 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=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0002 <Communication device> bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x16c0 idProduct = 0x2a9b bcdDevice = 0x4340 iManufacturer = 0x0001 <ERFOS> iProduct = 0x0002 <AVR-ISP2> iSerialNumber = 0x0003 <19331-49101-552> bNumConfigurations = 0x0001 Would it help to create a section for programmer diamex-isp-usb ? > > 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) ;-) > > Details here: https://github.com/avrdudes/avrdude/issues/920 > 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’m still not convinced that this stick does real USB mode (instead of serial emulation via ftdi. I’m 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 --- --- PGP-Key: CDE74120 ☀ computing @ chaos claudius [-- Attachment #2 --] <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Tomek,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 08.04.2022 um 05:33 schrieb Tomek CEDRO <<a href="mailto:tomek@cedro.info" class="">tomek@cedro.info</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">Mystery solved ;-)<br class=""><br class="">For avrdude `-P` parameter defines the the programmer port __BUT__ (as<br class="">obviously stated in man page) if you use `usb:` device then you need<br class="">to provide programmer SERIAL NUMBER last bytes not the OS serial port<br class="">device ;-)<br class=""></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=""></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">root@home2l:/ #<span class="Apple-tab-span" style="white-space:pre"> </span>usbconfig -d 0.4 dump_device_desc</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ugen0.4: <ERFOS AVR-ISP2> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA)</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 15px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bLength = 0x0012 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bDescriptorType = 0x0001 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bcdUSB = 0x0200 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bDeviceClass = 0x0002 <Communication device></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bDeviceSubClass = 0x0000 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bDeviceProtocol = 0x0000 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bMaxPacketSize0 = 0x0040 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> idVendor = 0x16c0 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> idProduct = 0x2a9b </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bcdDevice = 0x4340 </span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> iManufacturer = 0x0001 <ERFOS></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> iProduct = 0x0002 <AVR-ISP2></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> iSerialNumber = 0x0003 <19331-49101-552></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> bNumConfigurations = 0x0001 </span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Would it help to create a section for programmer diamex-isp-usb ?</span></div></div><blockquote type="cite" class=""><div class=""><div class=""><br class="">If you run avrdude with `-vvv` switch then you get increased<br class="">verbosity. It will tell you what it found. You will notice that it<br class="">found a device that matches VID:PID pair but not Serial NUMBER of the<br class="">device (not the port) ;-)<br class=""><br class="">Details here: <a href="https://github.com/avrdudes/avrdude/issues/920" class="">https://github.com/avrdudes/avrdude/issues/920</a><br class=""><br class=""></div></div></blockquote><div><br class=""></div><div>All I got with -vvv:</div><div><br class=""></div><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">avrdude: usbdev_open(): did not find any (matching) USB device "usb:552" (0x03eb:0x2104)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">avrdude: usbdev_open(): did not find any (matching) USB device "usb:0552" (0x03eb:0x2104)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class="">avrdude: usbdev_open(): did not find any (matching) USB device "usb:0003" (0x03eb:0x2104)</div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">avrdude: usbdev_open(): did not find any (matching) USB device "usb:1552" (0x03eb:0x2104)</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div><div>I’m still not convinced that this stick does real USB mode (instead of serial emulation via ftdi.</div><div><br class=""></div><div>I’m willing to buy a quality programmer from ATmel to move on.</div><div>Any recommendations?</div><div>Please advice.</div><div><br class=""></div><div>All I currently need, is burning/flashing/fusing ATtinys:</div><div><br class=""></div><div><div> avrdude -c stk500v2 -p t861 -P /dev/ttyU1 \</div><div> -U hfuse:w:init.t861.elf \</div><div> -U efuse:w:init.t861.elf \</div><div> -U eeprom:w:init.t861.elf \</div><div> -U flash:w:init.t861.elf</div><div class=""><br class=""></div></div><div>But debugging support would be helpful in the future.</div><div><br class=""></div><div>Sorry, I'm a newbie in the MCU business.</div><div><br class=""></div><div>Thank you so much for all the time you did spend to help me,</div><div>Axel</div><div><br class=""></div><div><br class=""></div><div><span style="orphans: 2; text-align: -webkit-auto; widows: 2;" class="">---</span></div></div><div class=""> <div dir="auto" style="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-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="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-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="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=""><div style="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=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: 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=""><div class="">---<br class="">PGP-Key: CDE74120 ☀ computing @ chaos claudius</div></div></div></div></div></div> </div> <br class=""></body></html>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7CDFB049-241F-4C31-A7B1-A7D6BDE6A002>
