PlatformIO Notes
Collection of PlatformIO installation and application hints and resource references. These hints were tested on Ubuntu 22.04 LTS and Windows 10.
Installing on Linux
Missing Python Error
During PlatformIO installation as VS Code Extension on a fresh Ubuntu 22.04 LTS, the installer complains that python is missing – even if it is installed via apt. What PlatformIO actually wants is Python venv:
sudo apt install python3-venv
Failing Firmware Upload
After fresh installation, PlatformIO fails to upload firmware to Arduino SAM boards. According to 99-platformio-udev.rules this happens due to unrecognised Arduino USB device PID and VID. To install udev rules for PlatformIO supported boards/devices, run the following command:
curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules