-
Notifications
You must be signed in to change notification settings - Fork 27
Linux
Paul edited this page Oct 19, 2023
·
2 revisions
On many Linux installations the device file of the Pico serial port is owned by root and a group you normal don't have by default. This leads often to timeout and access denied errors when MicroPico tries to connect to the Pico. There are two ways how to solve this problem:
- Run VS Code in sudo (NOT RECOMMENDED)
- Add the group who "owns" the serial port file to your current user. You can easily do this by downloading and executing the
scripts/solvePermissions.sh
script. However you have to change the marked line in the script if you raspberry pi pico (w) does not connect to/shows up as/dev/ttyACM0
to the correct device file.
# download scripts/solvePermissions.sh
wget https://raw.githubusercontent.com/paulober/MicroPico/main/scripts/solvePermissions.sh
# maybe not required
chmod +x ./solvePermissions.sh
# run the script
./solvePermissions.sh
You do all of the solutions mentioned in this document on your own risk! Be sure to understand what these command and scripts do before executing!
MicroPico's main developer is not a native English speaker. Feel free to create an issue if you spot a grammar or style error in the wiki.