Linux users have to install udev rules for PlatformIO supported boards/devices. The latest version of the rules may be found at https://raw.githubusercontent.com/platformio/platformio-core/master/scripts/99-platformio-udev.rules
Note
Please check that your board’s PID and VID are listed in the rules. You can list connected devices and their PID/VID using pio device list command.
This file must be placed at /etc/udev/rules.d/99-platformio-udev.rules
(preferred location) or /lib/udev/rules.d/99-platformio-udev.rules
(required on some broken systems).
Please open system Terminal and type
# Recommended
curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/master/scripts/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules
# OR, manually download and copy this file to destination folder
sudo cp 99-platformio-udev.rules /etc/udev/rules.d/99-platformio-udev.rules
Restart “udev” management tool:
sudo service udev restart
# or
sudo udevadm control --reload-rules
sudo udevadm trigger
Ubuntu/Debian users may need to add own “username” to the “dialout” group if they are not “root”, doing this issuing
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER
Similarly, Arch users may need to add their user to the “uucp” group
sudo usermod -a -G uucp $USER
sudo usermod -a -G lock $USER
Note
You will need to log out and log back in again (or reboot) for the user group changes to take effect.
After this file is installed, physically unplug and reconnect your board.