Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
Go to file
Scott Lahteine 72f2657a0e
Some checks are pending
CI - Build Tests / Build Test (ARMED) (push) Waiting to run
CI - Build Tests / Build Test (BTT_BTT002) (push) Waiting to run
CI - Build Tests / Build Test (BTT_GTR_V1_0) (push) Waiting to run
CI - Build Tests / Build Test (BTT_SKR_PRO) (push) Waiting to run
CI - Build Tests / Build Test (BTT_SKR_SE_BX) (push) Waiting to run
CI - Build Tests / Build Test (DUE) (push) Waiting to run
CI - Build Tests / Build Test (DUE_archim) (push) Waiting to run
CI - Build Tests / Build Test (FLYF407ZG) (push) Waiting to run
CI - Build Tests / Build Test (FYSETC_F6) (push) Waiting to run
CI - Build Tests / Build Test (FYSETC_S6) (push) Waiting to run
CI - Build Tests / Build Test (HC32F460C_aquila_101) (push) Waiting to run
CI - Build Tests / Build Test (I3DBEEZ9_V1) (push) Waiting to run
CI - Build Tests / Build Test (LERDGEK) (push) Waiting to run
CI - Build Tests / Build Test (LERDGEX) (push) Waiting to run
CI - Build Tests / Build Test (LPC1768) (push) Waiting to run
CI - Build Tests / Build Test (LPC1769) (push) Waiting to run
CI - Build Tests / Build Test (NUCLEO_F767ZI) (push) Waiting to run
CI - Build Tests / Build Test (Opulo_Lumen_REV3) (push) Waiting to run
CI - Build Tests / Build Test (PANDA_PI_V29) (push) Waiting to run
CI - Build Tests / Build Test (REMRAM_V1) (push) Waiting to run
CI - Build Tests / Build Test (SAMD21_minitronics20) (push) Waiting to run
CI - Build Tests / Build Test (SAMD51_grandcentral_m4) (push) Waiting to run
CI - Build Tests / Build Test (SKR_Pico) (push) Waiting to run
CI - Build Tests / Build Test (STM32F070CB_malyan) (push) Waiting to run
CI - Build Tests / Build Test (STM32F070RB_malyan) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RC_btt) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RC_btt_USB_maple) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RC_fysetc) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RC_fysetc_maple) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RC_meeb_maple) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RE_btt) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RE_btt_USB) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103RE_creality) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103VE_ZM3E4V2_USB_maple) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103VE_longer) (push) Waiting to run
CI - Build Tests / Build Test (STM32F103VE_longer_maple) (push) Waiting to run
CI - Build Tests / Build Test (STM32F401RC_creality) (push) Waiting to run
CI - Build Tests / Build Test (STM32F407VE_black) (push) Waiting to run
CI - Build Tests / Build Test (STM32G0B1RE_btt) (push) Waiting to run
CI - Build Tests / Build Test (STM32H743VI_btt) (push) Waiting to run
CI - Build Tests / Build Test (at90usb1286_dfu) (push) Waiting to run
CI - Build Tests / Build Test (chitu_f103) (push) Waiting to run
CI - Build Tests / Build Test (esp32) (push) Waiting to run
CI - Build Tests / Build Test (jgaurora_a5s_a1_maple) (push) Waiting to run
CI - Build Tests / Build Test (linux_native) (push) Waiting to run
CI - Build Tests / Build Test (malyan_M300) (push) Waiting to run
CI - Build Tests / Build Test (mega1280) (push) Waiting to run
CI - Build Tests / Build Test (mega2560) (push) Waiting to run
CI - Build Tests / Build Test (melzi_optiboot) (push) Waiting to run
CI - Build Tests / Build Test (mks_robin) (push) Waiting to run
CI - Build Tests / Build Test (mks_robin_lite_maple) (push) Waiting to run
CI - Build Tests / Build Test (mks_robin_nano_v1v2) (push) Waiting to run
CI - Build Tests / Build Test (mks_robin_pro2) (push) Waiting to run
CI - Build Tests / Build Test (mks_robin_pro_maple) (push) Waiting to run
CI - Build Tests / Build Test (mks_tinybee) (push) Waiting to run
CI - Build Tests / Build Test (rambo) (push) Waiting to run
CI - Build Tests / Build Test (rumba32) (push) Waiting to run
CI - Build Tests / Build Test (sanguino1284p) (push) Waiting to run
CI - Build Tests / Build Test (sanguino644p) (push) Waiting to run
CI - Build Tests / Build Test (simulator_linux_release) (push) Waiting to run
CI - Build Tests / Build Test (teensy31) (push) Waiting to run
CI - Build Tests / Build Test (teensy35) (push) Waiting to run
CI - Build Tests / Build Test (teensy41) (push) Waiting to run
CI - Unit Tests / Unit Test (push) Waiting to run
CI - Validate Pins Files / Validate Pins Files (push) Waiting to run
📝 Update HAL documentation, README
2024-11-23 20:27:28 -06:00
.devcontainer 🔨 VSCode + Devcontainer support (#22420) 2023-03-09 02:45:01 -06:00
.github RP2040 HAL with BTT SKR Pico (#24042) 2024-11-03 14:15:10 -06:00
.vscode 🧑‍💻 Don't Recommend DevContainer (#26348) 2023-10-22 15:44:29 -05:00
.zed 🧑‍💻 Fix Zed LSP setting 2024-10-16 16:23:57 -05:00
buildroot 🐛 Show probe/level menu for tramming (#27532) 2024-11-23 16:41:42 -06:00
config 🔖 Moving to bugfix-2.1.x 2022-06-04 01:22:02 -05:00
docker 🔨 Improve Docker local tests support (#25583) 2023-03-28 23:23:27 -05:00
docs 📝 Fix comment missing ')' (#27325) 2024-10-07 13:00:29 -05:00
ini 📝 Update HAL documentation, README 2024-11-23 20:27:28 -06:00
Marlin 📝 Update HAL documentation, README 2024-11-23 20:27:28 -06:00
test 🔨 Sim pins / INI cleanup 2024-05-19 23:07:24 -05:00
.aiderignore 🧑‍💻 Ignores for Aider AI 2024-10-29 11:36:41 -05:00
.editorconfig 🧑‍💻 Update .editorconfig settings (#26264) 2023-10-27 19:46:09 -05:00
.gitattributes .bin and .woff are binary 2020-10-29 00:49:18 -05:00
.gitignore 🧑‍💻 Ignores for Aider AI 2024-10-29 11:36:41 -05:00
LICENSE Update more external links (#18819) 2020-07-28 01:04:44 -05:00
Makefile CI check boards.h, pins.h (#27415) 2024-09-10 01:11:26 -05:00
platformio.ini RP2040 HAL with BTT SKR Pico (#24042) 2024-11-03 14:15:10 -06:00
README.md 📝 Update HAL documentation, README 2024-11-23 20:27:28 -06:00

MarlinFirmware's logo

Marlin 3D Printer Firmware

GPL-V3.0 License Contributors Last Release Date CI Status GitHub Sponsors
Follow MarlinFirmware on Mastodon

Additional documentation can be found at the Marlin Home Page. Please test this firmware and let us know if it misbehaves in any way. Volunteers are standing by!

Marlin 2.1 Bugfix Branch

Not for production use. Use with caution!

Marlin 2.1 continues to support both 32-bit ARM and 8-bit AVR boards while adding support for up to 9 coordinated axes and to up to 8 extruders.

This branch is for patches to the latest 2.1.x release version. Periodically this branch will form the basis for the next minor 2.1.x release.

Download earlier versions of Marlin on the Releases page.

Example Configurations

Before you can build Marlin for your machine you'll need a configuration for your specific hardware. Upon request, your vendor will be happy to provide you with the complete source code and configurations for your machine, but you'll need to get updated configuration files if you want to install a newer version of Marlin. Fortunately, Marlin users have contributed dozens of tested configurations to get you started. Visit the MarlinFirmware/Configurations repository to find the right configuration for your hardware.

Building Marlin 2.1

To build and upload Marlin you will use one of these tools:

Marlin is optimized to build with the PlatformIO IDE extension for Visual Studio Code. You can still build Marlin with Arduino IDE, and we hope to improve the Arduino build experience, but at this time PlatformIO is the better choice.

8-Bit AVR Boards

We intend to continue supporting 8-bit AVR boards in perpetuity, maintaining a single codebase that can apply to all machines. We want casual hobbyists and tinkerers and owners of older machines to benefit from the community's innovations just as much as those with fancier machines. Plus, those old AVR-based machines are often the best for your testing and feedback!

Hardware Abstraction Layer (HAL)

Marlin includes an abstraction layer to provide a common API for all the platforms it targets. This allows Marlin code to address the details of motion and user interface tasks at the lowest and highest levels with no system overhead, tying all events directly to the hardware clock.

Every new HAL opens up a world of hardware. At this time we need HALs for RP2040 and the Duet3D family of boards. A HAL that wraps an RTOS is an interesting concept that could be explored. Did you know that Marlin includes a Simulator that can run on Windows, macOS, and Linux? Join the Discord to help move these sub-projects forward!

Supported Platforms

Platform MCU Example Boards
Arduino AVR ATmega RAMPS, Melzi, RAMBo
Teensy++ 2.0 AT90USB1286 Printrboard
Arduino Due SAM3X8E RAMPS-FD, RADDS, RAMPS4DUE
ESP32 ESP32 FYSETC E4, E4d@BOX, MRR
HC32 HC32 Ender-2 Pro, Voxelab Aquila
LPC1768 ARM® Cortex-M3 MKS SBASE, Re-ARM, Selena Compact
LPC1769 ARM® Cortex-M3 Smoothieboard, Azteeg X5 mini, TH3D EZBoard
STM32F103 ARM® Cortex-M3 Malyan M200, GTM32 Pro, MKS Robin, BTT SKR Mini
STM32F401 ARM® Cortex-M4 ARMED, Rumba32, SKR Pro, Lerdge, FYSETC S6, Artillery Ruby
Pico RP2040 Dual Cortex M0+ BigTreeTech SKR Pico
STM32F7x6 ARM® Cortex-M7 The Borg, RemRam V1
STM32G0B1RET6 ARM® Cortex-M0+ BigTreeTech SKR mini E3 V3.0
STM32H743xIT6 ARM® Cortex-M7 BigTreeTech SKR V3.0, SKR EZ V3.0, SKR SE BX V2.0/V3.0
SAMD21P20A ARM® Cortex-M0+ Adafruit Grand Central M4
SAMD51P20A ARM® Cortex-M4 Adafruit Grand Central M4
Teensy 3.2/3.1 MK20DX256VLH7 ARM® Cortex-M4
Teensy 3.5 MK64FX512-VMD12 ARM® Cortex-M4
Teensy 3.6 MK66FX1MB-VMD18 ARM® Cortex-M4
Teensy 4.0 MIMXRT1062-DVL6B ARM® Cortex-M7
Teensy 4.1 MIMXRT1062-DVJ6B ARM® Cortex-M7
Linux Native x86 / ARM / RISC-V Raspberry Pi GPIO
Simulator Windows, macOS, Linux Desktop OS
All supported boards All platforms All boards

Marlin Support

The Issue Queue is reserved for Bug Reports and Feature Requests. Please use the following resources for help with configuration and troubleshooting:

Contributing Patches

You can contribute patches by submitting a Pull Request to the (bugfix-2.1.x) branch.

  • We use branches named with a "bugfix" or "dev" prefix to fix bugs and integrate new features.
  • Follow the Coding Standards to gain points with the maintainers.
  • Please submit Feature Requests and Bug Reports to the Issue Queue. See above for user support.
  • Whenever you add new features, be sure to add one or more build tests to buildroot/tests. Any tests added to a PR will be run within that PR on GitHub servers as soon as they are pushed. To minimize iteration be sure to run your new tests locally, if possible.
    • Local build tests:
      • All: make tests-config-all-local
      • Single: make tests-config-single-local TEST_TARGET=...
    • Local build tests in Docker:
      • All: make tests-config-all-local-docker
      • Single: make tests-config-all-local-docker TEST_TARGET=...
    • To run all unit test suites:
      • Using PIO: platformio run -t test-marlin
      • Using Make: make unit-test-all-local
      • Using Docker + make: maker unit-test-all-local-docker
    • To run a single unit test suite:
      • Using PIO: platformio run -t marlin_<test-suite-name>
      • Using make: make unit-test-single-local TEST_TARGET=<test-suite-name>
      • Using Docker + make: maker unit-test-single-local-docker TEST_TARGET=<test-suite-name>
  • If your feature can be unit tested, add one or more unit tests. For more information see our documentation on Unit Tests.

Contributors

Marlin is constantly improving thanks to a huge number of contributors from all over the world bringing their specialties and talents. Huge thanks are due to all the contributors who regularly patch up bugs, help direct traffic, and basically keep Marlin from falling apart. Marlin's continued existence would not be possible without them.

Marlin Firmware original logo design by Ahmet Cem TURAN @ahmetcemturan.

Project Leadership

Name Role Link Donate
🇺🇸 Scott Lahteine Project Lead [@thinkyhead] 💸 Donate
🇺🇸 Roxanne Neufeld Admin [@Roxy-3D]
🇺🇸 Keith Bennett Admin [@thisiskeithb] 💸 Donate
🇺🇸 Jason Smith Admin [@sjasonsmith]
🇧🇷 Victor Oliveira Admin [@rhapsodyv]
🇬🇧 Chris Pepper Admin [@p3p]
🇳🇿 Peter Ellens Admin [@ellensp] 💸 Donate
🇺🇸 Bob Kuhn Admin [@Bob-the-Kuhn]
🇳🇱 Erik van der Zalm Founder [@ErikZalm]

Star History

Star History Chart

License

Marlin is published under the GPL license because we believe in open development. The GPL comes with both rights and obligations. Whether you use Marlin firmware as the driver for your open or closed-source product, you must keep Marlin open, and you must provide your compatible Marlin source code to end users upon request. The most straightforward way to comply with the Marlin license is to make a fork of Marlin on Github, perform your modifications, and direct users to your modified fork.