Error when uploading to arduino uno

I just installed platformIO and when I try to upload my test code to the arduino uno, I get this error.

I am running Ubuntu in a virtual machine on windows 10, and here is my code.


  • Blink
  • Turns on an LED on for one second,
  • then off for one second, repeatedly.
    #include “Arduino.h”

void setup()
// initialize LED digital pin as an output.

void loop()
// turn the LED on (HIGH is the voltage level)
digitalWrite(LED_BUILTIN, HIGH);
// wait for a second
// turn the LED off by making the voltage LOW
digitalWrite(LED_BUILTIN, LOW);
// wait for a second

Please help, I really want to use this IDE.

The warning indicates that you haven’t set up your udev rules correctly. This is needed under linux, because by default it does not allow arbitrary programs to access the serial ports. The warning gives a link to the file containing the rules you need to install.

A possibly useful link is Linux Setup | Adafruit Arduino IDE Setup | Adafruit Learning System (note that you should use the settings suggested by platformio, which might be different from the ones on this page).

Maybe try to execute that command in a terminal :

sudo usermod -aG dialout "YourUsername"

and if it does not work, try to install this :

sudo apt-get install libusb-dev

i had the same problem…make sure you have nothing else plugged in your usb port and try changing the usb port of your arduino…hope that helps

I got it working, thank you guys for the help, turns out that my VM software was denying my arduino access to the linux system.