This is the newest version of the Marlin Firmware, customized and optimized for the Anycubic i3 Mega, based on my Marlin-Ai3M repository.
While I will try to keep this version updated with the latest changes from the Marlin firmware, for now the old readme and Wiki still applies.
Looking for a BLtouch firmware? Head this way! Mounting and configuration instructions are included.
A German translation of the instructions can be found here.
While the i3 Mega is a great printer for its price and produces fantastic results in stock, there are some improvements and additional features that this firmware provides:
M888
cooldown routine for the Anycubic Ultrabase (EXPERIMENTAL): This is meant to be placed at the end Gcode of your slicer. It hovers over the print bed and does circular movements while running the fan. Works best with custom fan ducts.
T<temperature>
: Target bed temperature (min 15°C), 30°C if not specified (do not set this under room temperature)S<fan speed>
: Fan speed between 0 and 255, full speed if not specifiedM888 S191 T25
: run the fan at 75% until the bed has cooled down to 25°CI provided three different precompiled hex files: One for no modifications on the stepper motor drivers - good for people who didn't touch anything yet, one for boards with TMC2208 installed and where the connectors have been flipped and one with TMC2208 and the connectors in original orientation.
Marlin-AI3M-vx.x.x-TMC2208.hex
Marlin-AI3M-vx.x.x-TMC2208_reversed.hex
Marlin-AI3M-vx.x.x-TMC2208_reversed.hex
.Marlin-AI3M-vx.x.x-stock_drivers.hex
.Marlin.ino
Tools -> Board
select Genuino Mega 2560
and ATmega2560
559
to 566
and line 857
to 865
in Configuration.h
)Sketch
, select Export compiled binary
Marlin.ino.hex
, not the Marlin.ino.with_bootloader.hex
!)M502
- load hard coded default valuesM500
- save them to EEPROMIf you are using this on a Mega-S, those two additional commands are necessary:
M92 E384
- set correct steps for the new extruderM500
- save themIf you have issues with an uneven bed, this is a great feature.
G28
or G28 Z0
) command and insert these two right underneath it:
M501
M420 S1
G29 S1
- Start MMBLG29 S2
- Next Mesh pointG91
, G1 Z0.02
, G90
(one after another, not in one line)G91
, G1 Z-0.02
, G90
ok
in the console, send M500
to save.G28
G26 C H200 P5 R25 Q4.2 Z4
H
parameterB80
Q
parameter sets retraction length in mm, Z
sets unretraction.BETA: This now also works without USB printing, via SD & display.
M603 L0 U0
to use manual loading & unloading.M603 L538 U555
to use automatic loading & unloading
L
and U
paramters define the load and unload length in mm. The values above work well on a stock setup, if you modded your extruder, bowden tube or hotend, you might need to adjust those.M500
M600
in your GCode at the desired layerM600
in your GCode at the desired layer or send it via terminalFilamentChange Pause
in the Special MenuCONTINUE
(only once!) on the screen and wait for the hotend to heat up again.M108
and wait for the hotend to heat up again.CONTINUE
on the screenM108
via your USB host or use FilamentChange Resume
in the Special MenuM108
, enable the advanced options at the bottom of the terminal and press Fake Acknowledgement
M600
in your GCode at the desired layerM600
in your GCode at the desired layer or send it via terminalFilamentChange Pause
in the Special MenuCONTINUE
(only once!) on the screen and wait for the hotend to heat up again.M108
and wait for the hotend to heat up again.CONTINUE
on the screenM108
via your USB host or use FilamentChange Resume
in the Special MenuM108
, enable the advanced options at the bottom of the terminal and press Fake Acknowledgement
Some updates require the storage to be cleared (M502
), if mentioned in the update log. In those cases, before updating, send M503
and make a backup of all the lines starting with:
M92
G29
M301
M304
After flashing the new version, issue a M502
and M500
. After that, enter every line you saved before and finish by saving with M500
.
No worries. You can easily go back to the default firmware and restore the default settings.
M502
and M500
. Now your machine is exactly as it came out of the box.M900 Kx
)M78
to read them)M600
filament change feature enabled
M888
cooldown routine for the Anycubic UltrabaseSpecial menu
Not for production use. Use with caution!
Marlin 2.0 takes this popular RepRap firmware to the next level by adding support for much faster 32-bit and ARM-based boards while improving support for 8-bit AVR boards. Read about Marlin's decision to use a "Hardware Abstraction Layer" below.
This branch is for patches to the latest 2.0.x release version. Periodically this branch will form the basis for the next minor 2.0.x release.
Download earlier versions of Marlin on the Releases page.
To build Marlin 2.0 you'll need Arduino IDE 1.8.8 or newer or PlatformIO. We've posted detailed instructions on Building Marlin with Arduino and Building Marlin with PlatformIO for ReArm (which applies well to other 32-bit boards).
Marlin 2.0 introduces a layer of abstraction so that all the existing high-level code can be built for 32-bit platforms while still retaining full 8-bit AVR compatibility. Retaining AVR compatibility and a single code-base is important to us, because we want to make sure that features and patches get as much testing and attention as possible, and that all platforms always benefit from the latest improvements.
name | processor | speed | flash | sram | logic | fpu |
---|---|---|---|---|---|---|
Arduino AVR | ATmega, ATTiny, etc. | 16-20MHz | 64-256k | 2-16k | 5V | no |
Teensy++ 2.0 | AT90USB1286 | 16MHz | 128k | 8k | 5V | no |
Due, RAMPS-FD, etc. | SAM3X8E ARM-Cortex M3 | 84MHz | 512k | 64+32k | 3.3V | no |
Re-ARM | LPC1768 ARM-Cortex M3 | 100MHz | 512k | 32+16+16k | 3.3-5V | no |
MKS SBASE | LPC1768 ARM-Cortex M3 | 100MHz | 512k | 32+16+16k | 3.3-5V | no |
Azteeg X5 GT | LPC1769 ARM-Cortex M3 | 120MHz | 512k | 32+16+16k | 3.3-5V | no |
Selena Compact | LPC1768 ARM-Cortex M3 | 100MHz | 512k | 32+16+16k | 3.3-5V | no |
Teensy 3.5 | ARM-Cortex M4 | 120MHz | 512k | 192k | 3.3-5V | yes |
Teensy 3.6 | ARM-Cortex M4 | 180MHz | 1M | 256k | 3.3V | yes |
name | processor | speed | flash | sram | logic | fpu |
---|---|---|---|---|---|---|
STEVAL-3DP001V1 | STM32F401VE Arm-Cortex M4 | 84MHz | 512k | 64+32k | 3.3-5V | yes |
Smoothieboard | LPC1769 ARM-Cortex M3 | 120MHz | 512k | 64k | 3.3-5V | no |
Proposed patches should be submitted as a Pull Request against the (bugfix-2.0.x) branch.
The current Marlin dev team consists of:
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.
While we can't prevent the use of this code in products (3D printers, CNC, etc.) that are closed source or crippled by a patent, we would prefer that you choose another firmware or, better yet, make your own.