Marlin 2.0 Beginner Guide for 3D Printer Firmware

Updated on:

We participate in the Amazon affiliate program and may earn a commission if you make a purchase through links on our site. We also participate in other affiliate programs.

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 wit h 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 knowledgeable, 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 it recognizes the device port.

Also, make sure that when you ran the build that it was 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

3 thoughts on “Marlin 2.0 Beginner Guide for 3D Printer Firmware”

  1. Hiya I have followed your advice above for Marlin 2.0 Beginner Guide for 3D Printer Firmware.
    I am using a Mac how can I find the.bin file for the Ender3 pro? I have the 32bit silent motherboard installed. Your advice is the closest I have got to actually managing to upgrade my firmware, its awesome!! It worked like a dream last night, but I got to 3am and thought ok I have this, but this morning when I came back to it to upload it to my printer the build had errors. I have tried and tried again.
    All I need is the .bin file to copy to my SD card. Why am I finding this so difficult? Thanks in advance.

  2. I would like to use my BTT-SKR-PRO V1.2 board with SilenSteSticks TMC5160hv to drive a CNC milling machine. To be able to follow this objective I am looking for a source to learn how to setup marlin 2.0 to drive the CNC milling machine I am designing and building myself.

Comments are closed.