Skip to content

Compilation Errors

Jaco Theron edited this page Mar 4, 2017 · 2 revisions

We have received a report about the firmware giving errors while compiling, and thus failing to compile and upload to the printer.

The first thing to check is that you have the following settings correct:

  • Board Type (under Tools > Board) is "Arduino/Genuino Mega or Mega 2560"
  • Processor (under Tools > Processor) is "ATmega2560 (Mega 2560)"

These settings define the board and which pins can be used for what purposes. The D5S mainboard is based on the Arduino Mega 2560 with the required components integrated to allow it to control the 3D printer.

Next, ensure the correct Libraries (under Sketch > Include Library > Library Manager) is available/installed:

  • EEPROM
  • LiquidCrystal
  • U8glib
  • SD

These libraries are referenced by the firmware, to provide some of the required functionality - without them the firmware will not work and compile.

Another issue we found is with the version of Board Definitions that comes built-in with the latest version of the Arduino IDE. The latest version of the "Arduino AVR Boards" definition (by Arduino) that successfully compiled the firmware is version "1.6.11" - none of the later versions was able to compile. How to downgrade your version to 1.6.11:

  1. Go to Tools > Boards > Board Manager.
  2. Click on the "Arduino AVR Boards" block.
  3. On the left bottom, a "Select Version" dropdown will appear, use that and select "1.6.11"
  4. Now click on the "Install" button right next to it. This will download and install (replace the existing definition).
  5. Do not Update this board definition (or you will have to re-perform these steps when you want to compile a change).

To make things simpler, I compiled a few different settings and placed them inside the "pre-compiled" folder. These can simply be flashed to the printer (only do this on an Official Wanhao mainboard as there is no safety check).

For support on this firmware, you can create an Issue (if you believe it is a bug), or post on the Wanhao Google Group.

You should always ensure to include that you are using this firmware on your printer, for us or other experts to help you get what you need faster.

Clone this wiki locally