Skip to content
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:

  1. Run VS Code in sudo (NOT RECOMMENDED)
  2. 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!

Clone this wiki locally