Arduino on Linux mint issue  

  RSS

Gary H
(@gary-h)
Active Member
Joined: 3 months ago
Posts: 7
2019-09-08 12:04 pm  

After trying to find the answer at the Arduino website to my issue I am here to ask for help. I had used windows in the past but have just switched to Linux Mint and now I am unable to upload to my red board (Sparkfun Uno). The board comes up under tools as well as the port but I get this error message.

avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied

I am willing to admit I am new to programming as well as Linux. Any help would be great.

Thanks, Gary


Quote
Pugwash
(@pugwash)
Reputable Member
Joined: 3 months ago
Posts: 284
2019-09-08 12:30 pm  

I am not entirely familiar with Linux Mint but this seems to be a file permission issue.

Linux treats everything as a file, including "ttyUSB0", so you will need to open the "terminal program" go to the dev folder on your hard drive, and check the permissions.

Enter ls -l at the prompt, this should give you a full list of files and permissions in the folder.

Read up on "chmod" command first, and you will need to use this command with "sudo" and your password.

Try following this:

$ cd /dev/

$ ls -l

If ttyUSB0 is showing something other than

crw-rw-rw-

it is definitely a permissions issue!

This post was modified 1 week ago by Pugwash

SteveC - I wouldn't join a club that would accept people like me as members (Oscar Wilde)


ReplyQuote
triform
(@triform)
Estimable Member
Joined: 2 months ago
Posts: 184
2019-09-08 1:36 pm  

@gary-h

You need to be in the dialout group to get to serial devices on Linux.

Do a:

sudo adduser your_user_id dialout

Log out then back in and this should fix it.

Scott


ReplyQuote
Gary H
(@gary-h)
Active Member
Joined: 3 months ago
Posts: 7
2019-09-08 3:07 pm  

@triform

Hello and thanks for the help. I followed your advice and I am already in the dialout group. I'm still getting the error. I need to do some more learning before I get this resolved.


ReplyQuote
Gary H
(@gary-h)
Active Member
Joined: 3 months ago
Posts: 7
2019-09-08 3:14 pm  

@pugwash

Hi, I have managed to get into the files and discovered ttyUSB0 is not there! I'm going to try and see how to get it, thanks for your help. This is proving to be a slippery uphill climb!


ReplyQuote
Pugwash
(@pugwash)
Reputable Member
Joined: 3 months ago
Posts: 284
2019-09-08 3:55 pm  

@gary-h

Did you look while the device was connected to the USB port?

If not, plug it in and have another look!

Also, I read that Ubuntu is prone to the same problem and one suggestion was to uninstall "Arduino"

and reinstall using "sudo apt-get install arduino".

This post was modified 1 week ago by Pugwash

SteveC - I wouldn't join a club that would accept people like me as members (Oscar Wilde)


ReplyQuote
Pugwash
(@pugwash)
Reputable Member
Joined: 3 months ago
Posts: 284
2019-09-08 4:18 pm  

@gary-h

Another thing, when I bought some Nano clones I had to install a driver for the CH340G chipset. After the first install, it still wasn't working but after another install, everything worked perfectly.

SteveC - I wouldn't join a club that would accept people like me as members (Oscar Wilde)


ReplyQuote
Gary H
(@gary-h)
Active Member
Joined: 3 months ago
Posts: 7
2019-09-08 6:14 pm  

@pugwash

I have checked to see if TTYUSB0 is there with my board plugged in and it is. However I am still not able to access the port in the arduino IDE.

The next step was to Uninstall which I did then reinstalled through the terminal.

Now I see TTYUSB0 in the file but in the IDE it is not there.....in addition to the genuine uno board only a dot now. This is going to take me places I never went before! LoL.

TIME FOR AN OLD MAN TO GO GET A SANDWICH AND SCRATCH HIS BEARD,

Thanks for your input.

Gary


ReplyQuote
Spyder
(@spyder)
Reputable Member
Joined: 3 months ago
Posts: 319
2019-09-09 2:32 am  
Posted by: @pugwash

and reinstall using "sudo apt-get install arduino"

I tried that first on mine. It gives you an older version of the IDE without all the board options and other options. I got the best version by installing from the .gz I got from the Arduino website


ReplyQuote
Gary H
(@gary-h)
Active Member
Joined: 3 months ago
Posts: 7
2019-09-09 11:24 pm  

@spyder

I have been forced to more mundane things for the time being but I will get the latest version of the IDE and dive back into it tomorrow.

Thanks, Gary


ReplyQuote

Please Login or Register