Just documenting this here.
If you want to upload to a Sanguino(lolu) or Melzi directly from platformio, without using a bootloader
Firstly setup a arduino board as a ArduinoISP as documented here [www.arduino.cc]
Wire this to the ISP port of your controller.
Now edit your platformio.ini file.
Set default_envs = melzi
In the [env:melzi] section
comment out upload_speed = 57600 with a #
add the following lines. (settings from [docs.platformio.org])
Then you need to "Upload using Programmer"
eg use
If you want to upload to a Sanguino(lolu) or Melzi directly from platformio, without using a bootloader
Firstly setup a arduino board as a ArduinoISP as documented here [www.arduino.cc]
Wire this to the ISP port of your controller.
Now edit your platformio.ini file.
Set default_envs = melzi
In the [env:melzi] section
comment out upload_speed = 57600 with a #
add the following lines. (settings from [docs.platformio.org])
upload_protocol = stk500v1 upload_flags = -P$UPLOAD_PORT -b$UPLOAD_SPEED ; edit these lines upload_port = SERIAL_PORT_HERE upload_speed = 19200 #this is the default in the arduino as isp sketch.
Then you need to "Upload using Programmer"
eg use