USBtiny programmer - avrdude - Operation not permitted

Chat about just about anything else
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 30 days after creation.
Locked
chompey

USBtiny programmer - avrdude - Operation not permitted

Post by chompey »

Hello.

I am trying to program Atmel microcontroler with USBtiny programmer from Adafruit.
Everything is working for me but I can't manage to get proper rights for AVRDUDE upload utility to work with USBtiny.
I get this error message:

avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted
avrdude: initialization failed, rc=-1


When I use sudo command to execute AVRDUDE, it works.
But it is not usable for me because I want to call this utility from IDE, so typing password everytime... can't be.

USBtiny device ID is:
Bus 002 Device 025: ID 1781:0c9f Multiple Vendors USBtiny

I added to folder etc/udev/rules.d file named 41-usbtiny.rules which contains line
SUBSYSTEM=="usb", ATTR{idProduct}=="0c9f", ATTRS{idVendor}=="1781", MODE="0666"

then commands
sudo chmod a+r /etc/udev/rules.d/41-usbtiny.rules
sudo restart udev

as this is solution adviced by Adafruit themselves for Ubuntu users.
But does not work for me.

I tried line
SUBSYSTEM=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c9f", GROUP="adm", MODE="0666"
I tried to copy rules file to folder lib/udev/rules.d, as these were solutions that worked for somebody,
but not for me.

Can you please give me some hint?

Thank you very much, Chompey (Czech Republic)
DrHu

Re: USBtiny programmer - avrdude - Operation not permitted

Post by DrHu »

http://mightyohm.com/blog/2010/03/run-a ... in-ubuntu/
http://forums.adafruit.com/viewtopic.php?p=21579

There are probably other answers than these, simple search on the Internet
Last edited by DrHu on Thu Jan 03, 2013 5:25 pm, edited 1 time in total.
chompey

Re: USBtiny programmer - avrdude - Operation not permitted

Post by chompey »

Thank you for your answer.

I tried everything MightyOhm.com advised, ie adding the file to etc/udev/rules.d, I tried GROUP admin, I tried GROUP myusername, I tried several priority levels, nothing worked for me :(

AVRDUDE 64 bit patch is included since version 5.5-2, my version is 5.11.1.

I am sorry if it looks like I did not try to find the answer myself.
I don't want to bother people, so I tried a lot first, I failed, so I had to ask.
I am not experienced user :(

Thank you, Chompey.
robrob

Re: USBtiny programmer - avrdude - Operation not permitted

Post by robrob »

Hello chompey!

If you don't have an answer to this question, here is my solution:

you have to replace the following

Code: Select all

SUBSYSTEM=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c9f", GROUP="plugdev", MODE="0666"
by this

Code: Select all

SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", GROUP="plugdev", MODE="0666"
Pay attention to the "ATTR" parameters - this is because in current udev the SYSFS is replaced by ATTR.
This should work with at least evry group you are - someone should give adafruit a hint...
chompey

Re: USBtiny programmer - avrdude - Operation not permitted

Post by chompey »

Dear robrob !

Sir, you are my savior.
Now it works perfectly.

Thank you very much!

Chompey.
robrob

Re: USBtiny programmer - avrdude - Operation not permitted

Post by robrob »

No problem, I've fought with this problem 3/4 year, but finally I've won! ;)

But these are the big problems the OS community has to fight: slightly differences ends up in more or less bigger trouble. An overlapping time with both arguments in coexistence with some big red warnings at boot time should help to minimize such problems.
But I can not estimate, if it is as simple as it sounds :oops:
Todinator

Re: USBtiny programmer - avrdude - Operation not permitted

Post by Todinator »

I just ran into this problem also. I followed the instructions on this thread and it works! Thank you so much, I really appreciate it!
User avatar
Pilosopong Tasyo
Level 6
Level 6
Posts: 1432
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: USBtiny programmer - avrdude - Operation not permitted

Post by Pilosopong Tasyo »

Glad this thread also solved your issue. Let's leave this thread to rest in the annals of Linux Mint forum history. Thread locked as per §2.2 ¶2 of the Forum Rules, Guidelines, and Policy.
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
Locked

Return to “Open Chat”