-
Notifications
You must be signed in to change notification settings - Fork 1
Building Marlin
cefiar edited this page Aug 11, 2025
·
4 revisions
Steps to build Marlin from source.
- Clone a copy of the Marlin repo.
- Install Docker-Desktop 2.3 or later.
- If on Linux, install the Docker Compose plugin (1.21 or later). Do not use the Ubuntu snap package.
- If on Windows 10 Home, install WSL2 Back-end.
- Install VSCode.
- Within VSCode, install the C/C++ helper extension and the PlatformIO extension. You will need to reload/restart VSCode.
- Within VSCode, open the folder of the Marlin repo you cloned in.
- Make any edits to the following files in the Marlin repo:
Marlin/Configuration.hMarlin/Configuration_adv.hplatformio.ini
- Hit the build button in VSCode to compile.
Resulting firmware will be built into the file .pio/build/[board_name]/firmware.bin, where [board_name] is the motherboard name defined in Marlin/Configuration.h and in platformio.ini (should be the same and match the hardware you are building).