June 17, 2019

Marlin 2.0 Beginner Guide for 3D Printer Firmware

Marlin 2.0 3D Printer firmware is the latest version that supports 32-bit Mainboards. If you have a 8-bit mainboard and want to install marlin check out our Marlin 1.1 Beginner Guide. Marlin 2.0 can applies to any Marlin HAL-compatible controller with an onboard bootable SD card.

Marlin 2.0 Pre-Requisites

  1. A fresh copy of Marlin 2.0: Click Here
  2. VSCode IDE Installed (or Atom): Click Here

That’s all you need next we will look at installing PlatformIO in VSCode.

Installing Platform IO Extension with VSCode

Open up VSCode and click on the Extensions Icon located on the left toolbar. marlin vscode tutorial icon

Next in the search field type: PlatformIO

marlin 2.0 platformio extension vscode install

Locate the PlatformIO IDE extension and click install.

marlin platform io ide vs code progress

Sit back and relax this installation process can take some time depending on your machine and os.

install plaftformio success marlin

If all goes well  you’ll see a notification in the bottom right of your IDE. Click Reload Now…

You have now installed PlatformIO for VSCode!

Opening Marlin 2.0 in VSCode with PlatformIO

If you haven’t done so already unzip the marlin files into your preferred directory.

Now with VSCode open click the PlatformIO Icon on the right toolbar and then open the marlin folder you just unzipped to your preferred directory.

open marlin folder in vscode

Open the top level marlin folder and make sure it has the platformio.ini file. Then click open…

folder to open in platformio

Okay you are now ready to start configuring and compiling your build!

Configuring Marlin Firmware in PlatformIO

First open the vscode platformioini file location file.

Next locate the line 24 marlin env_default setting around line 24 at the time of making this guide.

This line sets the processor environment and it’s important that you have the correct setting before going further.

Current Supported 32-bit mainboards for marlin

Arduino Mega 2560 (8-bit)megaatmega2560
Arduino Mega 1280 (8-bit)megaatmega1280
Arduino DueDUE
Re-ARM BoardLPC1768
Panucatt Azteeg X5LPC1769
Smoothieboard 4xLPC1769
RAMBo (8-bit)rambo
MKS Robinmks_robin

I tried to get the most know, supported and available mainboards if some are missing please leave a comment at the end of this article with the board and env code and i’ll add it to the list.

Once you have specified the correct board environment it’s time to test the build and see if it compiles successfully.

To run a build click on the platform IO icon and then click the build command from the list. Note there are also icons down at the bottom on the toolbar you can use.

marlin run build 2.0

This will execute the build command and start compiling marlin. You’ll see a terminal window open and the progress of the compilation. If all goes well you’ll see a success message. If you get a failure make sure you have the right settings or search google for the error.

marlin 2.0 compile success

Configuration Files

To adjust marlin to your 3D Printer specs you will need to edit the Configuration.h file and if you need advanced settings the Configuration_adv.h file.

If you have never adjusted these settings before and want to learn how you can follow the tutorial for Marlin 1.1.

Marlin 1.1 Beginner Guide for 3D Printer Firmware

Uploading Marlin 2.0 to your Mainboard

Marlin 2.0 is set to automatically upload to your mainboard’s port. Make sure you have your board connected to your computer and that is recognizes the device port.

Also make sure that when you ran the build that it completed without any errors.

If all is good click the marlin 2.0 upload to start the upload flash to your board.

That should be enough to get you going! If you need more support check out the official documents from the Marlin Homepage.

Check out these great articles to help fine tune your 3D Printer.

3D Printer Extruder Calibration Steps per mm

PID Tune your 3D Printer with Marlin Firmware

Marlin Custom Fan Pins 3D Printer Firmware

Leave a Reply

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram