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
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.
Next in the search field type: PlatformIO
Locate the PlatformIO IDE extension and click install.
Sit back and relax this installation process can take some time depending on your machine and os.
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 the top level marlin folder and make sure it has the platformio.ini file. Then click open…
Okay you are now ready to start configuring and compiling your build!
Configuring Marlin Firmware in PlatformIO
First open the file.
Next locate the 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|
|MKS SBASE 1.3||LPC1768|
|Panucatt Azteeg X5||LPC1769|
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.
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.
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.
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 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.