Wanhao D9 firmware
English

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

Before flashing

Send 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

  1. Programmer: wiring. MCU: ATmega2560.
  2. Port: your printer's COM port (for instance COM3). Leave the baud rate at its default.
  3. 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

  1. Unplug the USB cable, switch the printer off and on, plug the cable back.
  2. Connect at 250000 baud (Wanhao's firmwares used 115200) and send M115: the answer shows the new firmware.
  3. Home all axes, then run a bed levelling from the screen or with G29, and save with M500.

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:

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

Troubleshooting

ProblemSolution
Port in useClose every program using the printer's port.
Device not foundInstall the CH340 USB driver, try another cable or USB port, check the printer is switched on.
Unreadable characters after flashingUse 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 nothingThe motherboard firmware is older than v2.0.9: update it.
Homing stops a few millimetres before the switch, then Homing FailedElectrical noise on the endstop line. These firmwares filter it since v2.0.1: update.
The nozzle hits a bed clip during levellingUpdate 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 switchCheck 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.