• Steps
    • Prep your surround
    • Get the Marlin code
    • Configure your build
    • Build it!
    • Obtaining the firmware
    • Other models you can build for

Updated June 2020.

Marlin Firmware Official Site

Marlin on GitHub

In a previous post, nosotros build the Marlin v1.1.ix firmware for your Creality CR-10S (or other printer). In this postal service, we're going to walk through doing it for the 2.0 Bugfix branch. The ii.0 branch adds support for printers that use faster ARM-based and 32-bit boards. Information technology retains support for the 8-scrap AVR boards while continuing to ameliorate it.

ii.0 does this by introduction an brainchild layer called the Hardware Brainchild Layer, or HAL. The HAL allows Marlin to reuse more than lawmaking, likewise as maintain 1 unmarried code base of operations. This besides allows them to continue supporting those ubiquitous 8-bit AVR boards while building in lawmaking for the newer platforms. I'm running this on Ubuntu Linux 18.04, but it should exist easily adjustable to whatever other distro.

Anyways, let's build this thing:

  • TOC

Steps

Prep your environment

  1. Install pip sudo apt-get install pip
  2. Install PlatformIO for building Marlin pip install -U platformio

Get the Marlin code

  1. Clone the Marlin source, we simply desire the two.0.10 co-operative

    git clone --unmarried-branch --branch 2.0.10 http://github.com/MarlinFirmware/Marlin

  2. Download the example zip file (check the Marlin/config/README.dr. for latest URL)

    wget https://github.com/MarlinFirmware/Configurations/archive/release2.0.v.zip

  3. Unzip information technology

    unzip ./release2.0.5.nada

  4. Copy the config directory over

    cp ./Configurations-release-ii.0.5/config ./Marlin

Configure your build

  1. Change into the Marlin directory

    cd Marlin/Marlin

  2. Copy the CR-10S configuration files to the current directory

    cp ../config/examples/Creality/CR-10S/* ./

  3. If yous want to make changes to the defaults, now is the time to edit the files you only copied in. The defaults will piece of work fine. You can also copy some other printer's instance configuration in if you lot're non using a CR-10S.

Build it!

  1. This builds the firmware, it shouldn't have long and it volition open a window telling you if it passed or failed. Y'all will be asked about your board CPU, yous want 2560 for your CR-10S. If you're using some other board, y'all should verify earlier going further.

    python ./buildroot/share/vscode/auto_build.py build

A successful build will await like this:

success

Obtaining the firmware

Y'all'll find the firmware file at Marlin/.pio/build/mega2560/firmware.hex. You can use this with Firmware Updater to flash the firmware to your printer.

If the computer you're building Marlin on is connected to the printer by USB, you lot can upload the firmware by running: ./buildroot/share/vscode/auto_build.py upload.

Happy 3D printing!

Other models yous tin can build for

Here's a list of other included configurations:

            └── examples     ├── 3DFabXYZ     │   └── Migbot     ├── adafruit     │   └── ST7565     ├── AlephObjects     │   └── TAZ4     ├── AliExpress     │   ├── CL-260     │   └── UM2pExt     ├── Anet     │   ├── A2     │   ├── A2plus     │   ├── A6     │   └── A8     ├── AnimationExample     ├── AnyCubic     │   └── i3     ├── ArmEd     ├── Azteeg     │   └── X5GT     ├── BIBO     │   └── TouchX     │       ├── cyclops     │       └── default     ├── BQ     │   ├── Hephestos     │   ├── Hephestos_2     │   └── WITBOX     ├── Cartesio     ├── Creality     │   ├── CR-ten     │   ├── CR-10_5S     │   ├── CR-10mini     │   ├── CR-10S     │   ├── CR-8     │   ├── Ender-2     │   ├── Ender-3     │   └── Ender-4     ├── delta     │   ├── Anycubic     │   │   └── Kossel     │   │       └── images     │   ├── FLSUN     │   │   ├── auto_calibrate     │   │   ├── kossel     │   │   └── kossel_mini     │   ├── Geeetech     │   │   └── Rostock 301     │   ├── generic     │   ├── Hatchbox_Alpha     │   ├── kossel_mini     │   ├── kossel_pro     │   ├── kossel_xl     │   ├── MKS     │   │   └── SBASE     │   └── Tevo Footling Monster     ├── Einstart-Southward     ├── Felix     │   └── DUAL     ├── FlashForge     │   └── CreatorPro     ├── FolgerTech     │   └── i3-2020     ├── Formbot     │   ├── Raptor     │   ├── T_Rex_2+     │   └── T_Rex_3     ├── gCreate     │   └── gMax1.5+     ├── Geeetech     │   ├── A10M     │   ├── A20M     │   ├── GT2560     │   ├── I3_Pro_X-GT2560     │   ├── MeCreator2     │   ├── Prusa i3 Pro B     │   │   ├── bltouch     │   │   └── noprobe     │   ├── Prusa i3 Pro C     │   └── Prusa i3 Pro W     ├── Infitary     │   └── i3-M508     ├── JGAurora     │   └── A5     ├── MakerParts     ├── makibox     ├── Malyan     │   ├── M150     │   └── M200     ├── Micromake     │   └── C1     │       ├── basic     │       └── enhanced     ├── Mks     │   ├── Robin     │   └── Sbase     ├── Printrbot     │   └── PrintrboardG2     ├── RapideLite     │   └── RL200     ├── RepRapPro     │   └── Huxley     ├── RepRapWorld     │   └── Megatronics     ├── RigidBot     ├── Sanguinololu     ├── SCARA     ├── STM32     │   ├── Black_STM32F407VET6     │   ├── STM32F10     │   ├── stm32f103ret6     │   └── STM32F4     ├── TheBorg     ├── TinyBoy2     ├── Tronxy     │   ├── X1     │   ├── X3A     │   ├── X5S     │   ├── X5S-2E     │   └── XY100     ├── tvrrug     │   └── Round2     ├── UltiMachine     │   ├── Archim1     │   └── Archim2     ├── Velleman     │   ├── K8200     │   └── K8400     │       └── Dual-caput     ├── VORONDesign     ├── Wanhao     │   └── Duplicator six     ├── WASP     │   └── PowerWASP     └── wt150