Re: timeouts on USB ISP programmer

From: Axel Rau <Axel.Rau_at_chaos1.de>
Date: Fri, 08 Apr 2022 09:08:54 UTC
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