Marlin_2_X_X - makerbase-mks/MKS-GEN_L GitHub Wiki

Tips: Marlin 2.x.x build need use platfromio of Visual Studio Code

Install Visual Studio Code

  • Before starting to edit Marlin, we recommend that you install a good code editor - Visual Studio Code. You can even compile Marlin directly from it.

  • Visual Studio Code can be freely downloaded, after you have edited Marlin and the necessary parameters,you can compile it and upload your new firmware to the printer.

  • How to install Visual Studio Code and PlatformIO,edit and compile marlin,you can find from marlinfw.org

Download Marlin

After install VScode, you should download the Marlin source code. There are three ways to get Marlin source code.

  • You can download official marlin from here Marlin 2.x.x, we usually download the firmware LATEST RELEASE, just below the word DOWNLOAD. There, click on the 2.0.x.zip link.

  • You can use MKS TOOL to download marlin from here MKS TOOL, you can directly configure the firmware with the desired parameters from your browser and download it later.

Configure and compile

  • Download official marlin,you need change parameters suitable for MKS GEN_L board:

    • Platformio.ini:"default_envs = mega2560"
    • Configuration.h
      • MKS Gen_L V1.0:"#define MOTHERBOARD BOARD_MKS_GEN_L"
      • MKS Gen_L V2.x:"#define MOTHERBOARD BOARD_MKS_GEN_L_V2"
  • You can configure the firmware with the desired parameters, Reference documents,

Upload marlin firmware

  • You need select COM, and then upload firmware