SparkFun Forums 

Where electronics enthusiasts find answers.

Questions &/or issues related to products in the Programmers category & general programming devices should be posted in this forum.
#204172
I have the same version of ubuntu 18 installed on old HP PC and brand new intel NUC. The Arduino IDE just gives this message: "An error occurred while uploading the sketch". I looked around the web and I found some articles that theorize this could be caused bu the USB3.0 ports on the new NUC versus the USB2.0 ports on the old PC. Here are the DMESG messages from the two PCS when I plug it in:
OLD PC
[ 3379.195264] usb 1-1.6: new low-speed USB device number 7 using ehci-pci
[ 3379.308749] usb 1-1.6: New USB device found, idVendor=1781, idProduct=0c9f, bcdDevice= 1.04
[ 3379.308753] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 3379.308755] usb 1-1.6: Product: FabISP
NEW PC
[174668.274807] usb 1-1: new low-speed USB device number 16 using xhci_hcd
[174668.427714] usb 1-1: New USB device found, idVendor=1781, idProduct=0c9f, bcdDevice= 1.04
[174668.427719] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[174668.427721] usb 1-1: Product: FabISP
#204178
UPDATE: Turns out this isn't a USB3.0 issue, it's a user issue. It only works with root user. Regular user gets:

avrdude: Warning: cannot open USB device: Permission denied
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

I was running as root on the old PC, and setup the new one with normal user to improve security.

I looked around for user issue and found some articles, but still doesn't work for regular user.
http://www.krekr.nl/content/using-usbti ... th-ubuntu/
https://forum.arduino.cc/index.php?topic=388043.0
#204192
Hello antinort.

Were happy you were able to resolve the issue! We haven't tried to use this programmer in Linux and are not terribly familiar with how it works under Linux so your followup post was helpful to us and anyone else that runs into the same issue.

Have a great weekend, and happy hacking!