-1

I got a Pocket AVR Programmer.

https://learn.sparkfun.com/tutorials/pocket-avr-programmer-hookup-guide

I hooked it up on Ubuntu Linux, opened up a sketch in the Arduino IDE, selected Programmer: USBTinyISP and then Upload Using Programmer.

However, I am getting this error:

An error occured while uploading the sketch
avrdude: Warning: cannot open USB device: Permission denied
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

I even followed this blog post: https://www.krekr.nl/content/using-usbtinyisp-with-ubuntu/ and issued these commands:

In a terminal, type:

sudo nano /etc/udev/rules.d/99-USBtiny

Then paste

SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", GROUP="adm", MODE="0666"

into the new file. Write it out by pressing Ctrl-O.

sudo usermod -a -G plugdev YOURUSERNAME
sudo service udev restart
sudo udevadm control --reload-rules

However, the problem still remains.

asked Sep 7, 2023 at 19:16
2
  • Use lsusb or dmesg to confirm that the device is listed. Commented Sep 7, 2023 at 21:56
  • 3
    please do not post picture of text ... copy and paste the text into your question instead ... format as code Commented Sep 7, 2023 at 22:55

1 Answer 1

1

Have you installed the libusb?

sudo apt-get install libusb-1.0-0-dev

answered Sep 8, 2023 at 17:19
3
  • 1
    I'm not sure this actually answers the question that was asked. Commented Sep 8, 2023 at 17:57
  • Why not? usbtiny needs the libusb driver installed to properly work, if it's now installed it won't work, at least in UBUNTU Commented Sep 8, 2023 at 18:58
  • Thanks but libusb was already installed.... Commented Sep 10, 2023 at 19:43

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.