Tuesday, September 14, 2021

klipper on printrbot rev D

These instructions I was using on a raspberry pi board with raspbian Jessie connected to printerboard and running OctoPrint. I wonted to use RPi for a second printer that I am building, so it was time for me to switch to klipper.

Klipper firmware

You can probably run one of the klipper install scripts, but I decided at first to compile firmware and see how far I can get.

sudo apt-get install gcc-arm-none-eabi

git clone https://github.com/KevinOConnor/klipper

cd klipper

make menuconfig

Select options as shown on the screenshot:


Save your configuration by hitting Q and Y (Save)

make

If everything goes well you should have ./out/klipper.elf.hex file generated

Flashing

Start by installing dfu programmer. Before doing this I also tried teensy_loader_cli but without much success.

apt-get install dfu-programmer

On the printrboard set jumper to boot. Device did not appear as DFU loader right away, so I had to click reset button. If you run lsusb you should see DFU bootloader device:


At first I tried to flash without erasing and was getting errors. I also found that you need to use sudo otherwise it won't work. To erase/flash run these commands:

sudo dfu-programmer at90usb1286 erase

sudo dfu-programmer at90usb1286 flash <path>/klipper.elf.hex


Power down device and remove jumper. Power back up. You should see Klipper device.


Success!

No comments:

Post a Comment