No "klipper.bin" file created (D9 300)

Good day all. GREAT FW, thank you Kevin and team.

I am trying to install the klipper FW onto my Wanhau Duplicator 9 Mk2 300. I have already installed klipper and MainsailOS onto my Raspberry Pi. When I however reach the stage of building and flashing the fw for my printer, I run into problems…

When I run the “make” command, it completes with errors:

Then I run “make clean”, and then “make”, it successfully completes, but no “klipper.bin” file?

I have tried everything that I can think of, and did this about 11 or 12 times now. When checking for the serial port to be used, an error also comes up. Any help would be greatly appreciated.

PS: I have not been able to find any YT videos about using Klipper on the D9 300. I will create one, as soon as mine works :slight_smile:

Error 2

The steps you are describing only creates the firmware for your controller board.
The actual config file has to be established on your own starting with the pre-made config that can be found here: klipper/printer-wanhao-duplicator-9-2018.cfg at master · KevinOConnor/klipper · GitHub

Probably you want to start with: printer-wanhao-duplicator-9-2018.cfg

Contrary to e.g. Marlin, you do not have to compile the printer’s configuration into the firmware but it is supplied separately.

Edit:
Of course you have to flash the firmware file to your printer’s board. See klipper | Klipper is a 3d-printer firmware
Also pay attention to potential firmware / flashing information on top of the above linked cfg

Thank you kindly for the reply Sineos. I have my printer.cfg in Mainsail, cooied the basic example supplied.

I cannot seem to create the flashing firware that should go o to the MCU of the printer. I do exactly as told, but the klipper.bin never gets created for me to copy to the sd and flash the printer…:flushed::cry:

Please do not mix up the two.

Flashing the firmware:

make menuconfig
make
make flash .... --> See documentation

This will flash the required firmware to your printer board

Configuring your settings:

  • Depending on how you install Mainsail you should already have a bare minimal printer.cfg or mainsail.cfg (this is why I do not like these blackbox solutions, as it kind of invalidates the official documentation and the user does not know how to get to the required steps)
  • Create the cfg or append the existing cfg according to klipper/printer-wanhao-duplicator-9-2018.cfg at master · KevinOConnor/klipper · GitHub
  • Restart the Klipper service: sudo service klipper restart
  • Check the log files for errors. In the log file you will also see what the expected filename and location of the cfg is

Important:

  • Klipper does not create the config. It is entirely your responsibility and a manual task to create the required file
  • Mainsail / MainsailOS already seems to create a basic cfg file. You will have to find it.
  • The Klipper log file (/tmp/klippy.log) will tell you the expected cfg file name

Thank you kindly.

I only tried the blackbox setup out if oure desperation. Way I understand it, after I run make, the file klipper.bin will en dup inside the OUT folder. I then take that to my sd, and flash the controller in printer.

I just cannot find that file anywhere in the OUT folder, or anywhere else.

Should I connect the printer, and then run make flash?

Could it be because I am trying to use a Pi 1 Model B ?

What is your error message?

The process should look something like this:

ubuntu@ubuntu ~/klipper $ make menuconfig
Loaded configuration '/home/ubuntu/klipper/.config'
Configuration saved to '/home/ubuntu/klipper/.config'
ubuntu@ubuntu ~/klipper $ make
  Creating symbolic link out/board
  Building out/autoconf.h
  Compiling out/src/sched.o
  Compiling out/src/command.o
  Compiling out/src/basecmd.o
  Compiling out/src/debugcmds.o
  Compiling out/src/initial_pins.o
  Compiling out/src/gpiocmds.o
  Compiling out/src/stepper.o
  Compiling out/src/endstop.o
  Compiling out/src/adccmds.o
  Compiling out/src/spicmds.o
  Compiling out/src/thermocouple.o
  Compiling out/src/i2ccmds.o
  Compiling out/src/pwmcmds.o
  Compiling out/src/lcd_st7920.o
  Compiling out/src/lcd_hd44780.o
  Compiling out/src/buttons.o
  Compiling out/src/tmcuart.o
  Compiling out/src/spi_software.o
  Compiling out/src/neopixel.o
  Compiling out/src/sensor_adxl345.o
  Compiling out/src/pulse_counter.o
  Compiling out/src/avr/main.o
  Compiling out/src/avr/timer.o
  Compiling out/src/avr/gpio.o
  Compiling out/src/avr/adc.o
  Compiling out/src/avr/spi.o
  Compiling out/src/avr/i2c.o
  Compiling out/src/avr/hard_pwm.o
  Compiling out/src/avr/watchdog.o
  Compiling out/src/avr/serial.o
  Compiling out/src/generic/serial_irq.o
  Building out/compile_time_request.o
Version: v0.9.1-420-g316b49c6-20210415_161056-ubuntu
  Linking out/klipper.elf
  Creating hex file out/klipper.elf.hex
ubuntu@ubuntu ~/klipper $ ls -l /dev/serial/by-id/*
lrwxrwxrwx 1 root root 13 Apr 15 15:56 /dev/serial/by-id/usb-03eb_6124-if00 -> ../../ttyACM1
ubuntu@ubuntu ~/klipper $ make flash FLASH_DEVICE=/dev/serial/by-id/usb-03eb_6124-if00

If the Flash process fails or the command ls -l /dev/serial/by-id/* produces nothing meaningful then see:

and

I think i onow where the issue is. I now susoect the printer needs to be plugged in before trying to find the correct serial connection…:flushed::scream::poop::rofl:

Hmm, actually plugging in the printer should not be needed. Klipper uses an esoteric, pseudo-telepathic interface (short EPTI) to influence the quantum spin in the MCU.

Currently Kevin is developing an additional feature, where you also no longer need a power supply. The heated bed is used to harvest the earth’s magnetic field to generate enough power for the entire system.

:dizzy:

1 Like

Hi sineos. I finally realized that the setup has been working 100% all along. The problem was, I was expecting a “klipper.bin” file to be created, but my D9 300 can be flashed without sd card using make flash. I have bought a new Pi 3 A+, and the setup was flawless. Thank you so much for your kind assistance!

I have the next major challenge, and that is with the BL Touch. The printer-wanhao-duplicator-9-2018.cfg file available to us, is for the MK 1 that uses a probe. I have been trying to get the printer working, but no response from the BL Touch. Anywhere I can look please?

Should I start a new thread for that?