HiLetGo USBtinyISP programmer - FreeBSD
Hardware info on main page.
Local links
c2 - FreeBSD,
History
2022-03-12: c2 - I connected the USBtinyISP programmer to my FreeBSD workstation, which runs FreeBSD 13.0-release now:
tingo@kg-core2:~ $ freebsd-version -ku 13.0-RELEASE-p7 13.0-RELEASE-p7
kernel
tingo@kg-core2:~ $ uname -a FreeBSD kg-core2.kg4.no 13.0-RELEASE-p7 FreeBSD 13.0-RELEASE-p7 #0: Mon Jan 31 18:24:03 UTC 2022 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
the programmer shows up in usbconfig output
tingo@kg-core2:~ $ sudo usbconfig -d ugen1.6 ugen1.6: <vendor 0x1781 USBtinyISP> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
with an Arduino Uno connected
tingo@kg-core2:~ $ avrdude -c usbtiny -p m328p avrdude: Error: Could not find USBtiny device (0x1781/0xc9f) avrdude done. Thank you.
ok, sudo then
tingo@kg-core2:~ $ sudo avrdude -c usbtiny -p m328p avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e950f (probably lgt8fx328p) avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF) avrdude done. Thank you.
interesting. I created a devd file for usbtinyisp
tingo@kg-core2:~ $ cat /usr/local/etc/devd/usbtinyisp.conf # allow group (operator) access to the usb connection of the USBtinyISP device notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "vendor" "0x1781"; match "product" "0x0c9f"; action "usb_devaddr=`echo $cdev | sed 's#^ugen##'` && chmod g+rw /dev/usb/${usb_devaddr}.*"; };
and restarted devd. Now avrdude works without sudo
tingo@kg-core2:~ $ avrdude -c usbtiny -p m328p avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably lgt8fx328p) avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF) avrdude done. Thank you.
Nice.
2022-03-12: I created this page.