Sketch uses 4240 bytes (13%) of program storage space. Maximum is 32256 bytes.
Global variables use 95 bytes (4%) of dynamic memory, leaving 1953 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
Failed uploading: uploading error: exit status 1
My Linux Mint PC crashed and I lost everything.I am using Canaduino Uno which needs a CH340 driver. In trying to redo some projects that worked before, I am running into problems. Please help.
Hi @moecat. This "Permission denied
" error can occur if your Linux user has not been added to the dialout
group. I'll provide instructions you can follow to add your user to this group:
- Open a command line terminal.
- Type the following command:
sudo usermod -a -G dialout "$USER"
- Log out of your Linux account.
- Log back in to your Linux account.
Now try uploading the sketch to your Arduino board again, just as you did before. Hopefully the "Permission denied
" error will no longer occur.
The problem is that when I type in the command and press Enter, I get the response :
[sudo] password for maurice: . I have no clue about a password for the Terminal. Would it be the same pasword I use to gain access to the PC ?
The other thing is, I'm not even sure how to log out and log in to my Linux account.
Thanks for your previous quick response.
That is correct. It is your Mint login password. The user must be an admin.
Here is a tutorial for logging out:
Once you have logged out, you will be presented with the log in screen. Simply enter your username and password there to log back in.
Good morning,
Thanks to your expert advice, I am now up and running.
I've been using Linux Mint and Arduino for several years now, but when it comes to the finer points I'm at a loss.
Thanks again for your rapid response to my dilemma, and for your precise instructions.
Maurice
You are welcome. I'm glad it is working now.
Regards,
Per
A post was split to a new topic: Can't upload / protocol error
A post was split to a new topic: I can't get built-in example sketch "Dimmer" to work
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.