Flashing the Duplicator 9 motherboard
The D9's motherboard is an ATmega2560 with a USB bootloader: no programmer, no opening the base, just a USB cable.
What you need
- A USB cable between the printer and the computer, and the printer switched on.
- AVRDUDESS (Windows, graphical, easiest) or avrdude (command line, every system).
- The .hex for your model and size: MK1, MK1 + kit, MK2, MK3.
Before flashing
M503 and keep the answer. Since v2.0.3 an update keeps the settings stored in the
printer, but updating to v2.0.3 starts once from this firmware's defaults (the way settings are stored
changed), and so does coming from Wanhao's firmware. Set your probe Z offset again afterwards with M851 Z…
and M500.Close every program that may hold the printer's port: Cura, PrusaSlicer, OctoPrint, Pronterface, serial terminals.
Flash with AVRDUDESS
- Programmer:
wiring. MCU:ATmega2560. - Port: your printer's COM port (for instance
COM3). Leave the baud rate at its default. - Flash: choose the .hex file, then click Program!. It takes 30 to 60 seconds.
Flash with avrdude
# Windows
avrdude -v -p atmega2560 -c wiring -P COM3 -D -U flash:w:D9_MK2_300.hex:i
# Linux / macOS
avrdude -v -p atmega2560 -c wiring -P /dev/ttyUSB0 -D -U flash:w:D9_MK2_300.hex:i
Replace the port and the file name with yours. The wiring protocol picks the bootloader's speed by itself.
First boot
- Unplug the USB cable, switch the printer off and on, plug the cable back.
- Connect at 250000 baud (Wanhao's firmwares used 115200) and send
M115: the answer shows the new firmware. - Home all axes, then run a bed levelling from the screen or with
G29, and save withM500.
Back to this firmware's default settings
Since v2.0.3, a firmware update keeps the settings stored in the printer (probe Z offset, steps/mm, PID, mesh…). New default values in a release therefore do not replace the ones already stored. Reset once when you update from v2.0.2 or earlier while keeping values saved by hand, when the printer behaves oddly after trying other firmwares, or whenever you want to start clean:
- On the screen: Settings → More → Reset settings → ✓.
- Over USB: send
M502(load this firmware's defaults) thenM500(save them).
Then set your probe Z offset again (M851 Z… then M500) and run a bed levelling. Check the
result with M503.
Power loss and filament sensor
- Power-loss recovery is on: the job is saved on each layer change. Turn it off with
M413 S0thenM500. - A print that stops at once with power outage as soon as it heats: update to v2.0.4 or later. Earlier builds watched the board's power-fail input, which reads low as soon as the heaters start.
- Filament runout detection is on by default on every model since v2.0.8, and does nothing without a sensor. After an update from an earlier release, turn it on with
M412 S1thenM500, or on the screen under Settings → Filament → Filament sensor. Wiring and the BTT Smart Filament Sensor: Filament sensor.
Troubleshooting
| Problem | Solution |
|---|---|
| Port in use | Close every program using the printer's port. |
| Device not found | Install the CH340 USB driver, try another cable or USB port, check the printer is switched on. |
| Unreadable characters after flashing | Use 250000 baud with these firmwares, 115200 with Wanhao's. |
| Temperatures shown ×10 on the screen (236 for 23.6 °C) | The screen still has old files: flash DGUS Reloaded 2.0. |
| The screen goes back to English at each start, or its Filament sensor page does nothing | The motherboard firmware is older than v2.0.9: update it. |
| Homing stops a few millimetres before the switch, then Homing Failed | Electrical noise on the endstop line. These firmwares filter it since v2.0.1: update. |
| The nozzle hits a bed clip during levelling | Update to v2.0.2 or later: the first probing column is 10 mm in from the edge, as on Wanhao's firmware. |
| The bed moves away from the Y switch | Check you took your model's firmware: the Y motor is at the back on the MK1, MK1 + kit and MK2, at the front on the MK3. |
Going back to Wanhao's firmware
Each model page links Wanhao's original motherboard and screen firmwares. Flash them the same way; Wanhao's motherboard firmware needs Wanhao's screen firmware of the same generation.
Questions: Discord or GitHub issues.