Skip to content

Marlin_firmware

mks-viva edited this page Aug 7, 2021 · 6 revisions

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 the version of MKS from here MKS Robin E3-E3D marlin2.0 for Ender3, We suggest you download it because configure(platformio.ini,configuration.h) is suitable for MKS Robin E3 or E3D board.

  • 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.

  • If you don't want to change and your machine is Ender3, so, you can download Robin_e3.bin file directly and copy it to root directory of TF card and update it

Configure and compile

  • IF you download official marlin,you need change parameters suitable for MKS Robin E3 or E3D board:

    • platformio.ini:"default_envs = mks_robin_e3"
    • configuration.h: Setting MOTHERBOARD
      • Use V1.0 vserion hardware
        • Use MKS Robin E3: "#define MOTHERBOARD BOARD_MKS_ROBIN_E3"
        • Use MKS Robin E3D: "#define MOTHERBOARD BOARD_MKS_ROBIN_E3D"
      • Use V1.1 version hardware
        • Use MKS Robin E3: "#define MOTHERBOARD BOARD_MKS_ROBIN_E3_V1_1"
        • Use MKS Robin E3D: "#define MOTHERBOARD BOARD_MKS_ROBIN_E3D_V1_1"
    • configuration.h:"#define SERIAL_PORT 1" //For USB connect or AUX-1(MKS TFT)
  • IF you download the version of MKS, the basic configure is ok, you only change motherboard type according to your board

  • You can configure the firmware with the desired parameters, Reference documents,

Update firmware

  • After compile firmware, copy "Robin_e3.bin" file to root directory of TF card [from: Marlin -> .pio - > build -> mks_robin_e3]

  • Reset or repower on update firmware