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.
-
Use lsusb or dmesg to confirm that the device is listed.timemage– timemage2023年09月07日 21:56:33 +00:00Commented Sep 7, 2023 at 21:56
-
3please do not post picture of text ... copy and paste the text into your question instead ... format as codejsotola– jsotola2023年09月07日 22:55:22 +00:00Commented Sep 7, 2023 at 22:55
1 Answer 1
Have you installed the libusb?
sudo apt-get install libusb-1.0-0-dev
-
1I'm not sure this actually answers the question that was asked.sempaiscuba– sempaiscuba2023年09月08日 17:57:41 +00:00Commented 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 UBUNTUNuno Santos– Nuno Santos2023年09月08日 18:58:39 +00:00Commented Sep 8, 2023 at 18:58
-
Thanks but libusb was already installed....user1584421– user15844212023年09月10日 19:43:21 +00:00Commented Sep 10, 2023 at 19:43
Explore related questions
See similar questions with these tags.