You are not logged in.

#1 2016-04-28 15:44:20

charliez1312
Member
Registered: 2015-11-23
Posts: 17

Arduino IDE - Permission denied

Hi everyone,

I have problem with Arduino IDE on my Arch linux. I add my user to group uucp, lock and tty. When I use my Arduino UNO, everything is OK. But when I want upload code to my other Arduino (micro, leonardo, nano) I get this error: avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied

When I am sudo, it work good. Problem is only, when I logged as normal user.

Anybody know where is a problem?

Please sorry for my Englisch, I am student and I learnt it.

Thanks

Offline

#2 2016-04-29 18:19:46

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: Arduino IDE - Permission denied

What do you get when you follow instructions from the Wiki? What are permissions on the mentioned file? Haven’t you missed re-logging after adding yourself to the groups?

Last edited by mpan (2016-04-29 18:20:47)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2016-05-01 15:30:59

charliez1312
Member
Registered: 2015-11-23
Posts: 17

Re: Arduino IDE - Permission denied

mpan wrote:

What do you get when you follow instructions from the Wiki? What are permissions on the mentioned file? Haven’t you missed re-logging after adding yourself to the groups?

Thanks for your answer. How can i find permissions on arduino file? I reboot my computer, but problem remains.

Here is full error:

[charlie@Thinkpad_X220_ArchLinux ~]$ arduino
Picked up JAVA_TOOL_OPTIONS: 
Error parsing gtk-icon-sizes string: ''

Projekt zabírá 5 058 bytů (17%)  úložného místa pro program. Maximum je 28 672 bytů.
Globální proměnné zabírají 166 bytů (6%)  dynamické paměti, 2 394 bytů zůstává pro lokální proměnné. Maximum je 2 560 bytů.
Found programmer: Id = ""; type = 
    Software Version = .; Hardware Version = .
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: error: programmer did not respond to command: leave prog mode
avrdude: error: programmer did not respond to command: exit bootloader
Problém s přenosem dat na vývojovou desku (board). Na http://www.arduino.cc/en/Guide/Troubleshooting#upload naleznete další doporučení.

Thanks

Offline

#4 2016-05-02 03:49:53

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: Arduino IDE - Permission denied

No need to quote the whole post just above yours.

I don’t know how can you find permissions on “arduino file”, because I don’t know what’s that. And never mentioned it: I was referring to the file mentioned in the error message.

Also the error you have provided now is different from what you showed earlier. It seems like you have your Arduino connected in a wrong way. Possibly loose connectors, broken cables, wrong pinout, unreliable power supply etc. But this doesn’t seem to be an issue related to ArchLinux.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2016-05-02 15:47:40

charliez1312
Member
Registered: 2015-11-23
Posts: 17

Re: Arduino IDE - Permission denied

Please excuse me for misunderstanding.

How is it possible, that work with sudo and with my other computer is OK?

Offline

#6 2016-05-02 16:05:33

betseg
Member
From: Turkey
Registered: 2015-04-25
Posts: 182

Re: Arduino IDE - Permission denied

Offline

#7 2016-08-18 13:05:15

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Arduino IDE - Permission denied

Sorry to pick up this thread. It seems to me the most appropriate.
@ betseg
I've done the rule

SUBSYSTEMS=="usb", ATTR{idProduct}=="7523", ATTR{idVendor}=="1a86", GROUP="users", MODE="0666"

According what I found by lsusb

## Before plugging the cable
$  lsusb

Bus 004 Device 003: ID 0955:7002 NVidia Corp.
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1bcf:2885 Sunplus Innovation Technology Inc. ASUS Webcam
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0a5c:2190 Broadcom Corp.
Bus 001 Device 004: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 001 Device 003: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

## After  plugging the cable

$ lsusb
Bus 004 Device 003: ID 0955:7002 NVidia Corp.
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1bcf:2885 Sunplus Innovation Technology Inc. ASUS Webcam
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 005: ID 0a5c:2190 Broadcom Corp.
Bus 001 Device 004: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 001 Device 003: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But I can't get the permissions to access /dev/ttyUSB0 and I must modify manually the permission by

$  sudo chmod 666 /dev/ttyUSB0 

Then it works.

So what am I missing ?
How to check the permission or whether udev had taken action on that ?


do it good first, it will be faster than do it twice the saint wink

Offline

#8 2016-08-19 07:55:17

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: Arduino IDE - Permission denied

I found a solution, writing in /etc/udev/rules.d/98-ArduiNano.rules (created for the scope)

# Permission for Arduino Nano on /dev/ttyUSB0
SUBSYSTEMS=="usb", ATTRS{product}=="USB2.0-Serial",GROUP="users", MODE="0666", SYMLINK+="ArduiNano"

This gives a symlink ArduiNano and is usable by my group.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB