Welcome! Log In Create A New Profile


Uploading marlin via Arduino as ISP in platformio

Posted by Dust 
Uploading marlin via Arduino as ISP in platformio
April 24, 2020 12:04PM
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])

upload_protocol = stk500v1
upload_flags =

; 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

Edited 1 time(s). Last edit at 04/24/2020 12:12PM by Dust.
Sorry, only registered users may post in this forum.

Click here to login