Quantcast
Channel: Reprap Forum - Sanguino(lolu)
Viewing all articles
Browse latest Browse all 269

Uploading marlin via Arduino as ISP in platformio (no replies)

$
0
0
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 =
    -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


Viewing all articles
Browse latest Browse all 269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>