I have a problem during upload any program on Arduino MKR WiFi 1010.
I work with the online plugin under linux OS. First I verify and save the board. Second I tried to upload and save the program. I have the following error:
Reset before upload: 1200bps Touch: Open port /dev/ttyACM0: Permission denied
I entered the terminal and wrote the following code:
user@user-HP-EliteBook-8470p:~$ sudo usermod -a -G dialout user
user@user-HP-EliteBook-8470p:~$ sudo chmod a+rw /dev/ttyACM0
Then I can upload and save the program.
But I have to do this procedure each time when I want to upload any program. How I can fix this problem and after entering this code, it will be not necessary to do it again?
But I have to do this procedure each time when I want to upload any program.
If you mean that you have to make yourself a member of the dialout group each time that seems very strange. I use Linux Mint on this laptop and I only had to do it once.
What version of Linux are you using?
sudo adduser user dialout
Log out and log in again.
Thank you very much! It's working now!
Glad to hear it.
The funny thing is that what you were unsuccessfully attempting - at least the "sudo usermod -a -G dialout user" line does seem to be the commonly recommended version. In fact on checking now it is the version I used on this particular computer (in the lounge-room ).
What does "ls -al /dev/ttyACM*" show?