Skip to content

Latest commit

 

History

History
64 lines (57 loc) · 2.68 KB

Firmware.md

File metadata and controls

64 lines (57 loc) · 2.68 KB

KUSBA PRO Firmware Flashing & Usage

Note: Make sure to use an up-to-date version of Klipper with LIS2DW accelerometer support.


Klipper Prep. (enabling resonance testing)
  1. Run the following commands in order. This will take some time. (Based on the official Klipper docs)
~/klippy-env/bin/pip install -v numpy
sudo apt update
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev

  1. Connect your KUSBA PRO via a USB cable to your Raspberry Pi while holding down the button. The LED on the PCB will turn on.
  2. SSH into your Raspberry Pi.
  3. Go to the Klipper directory: cd ~/klipper
  4. Clean remaining files from previous build: make clean
  5. Choose the options for the build: make menuconfig
  6. Use these settings:
[*] Enable extra low-level configuration options
    Micro-controller Architecture (STMicroelectronics STM32)  --->
    Processor model (STM32F042)  --->
    Bootloader offset (No bootloader)  --->
    Clock Reference (8 MHz crystal)  --->
    Communication interface (USB (on PA9/PA10))  --->
    USB ids  --->
    Optional features (to reduce code size)  --->
()  GPIO pins to set at micro-controller startup (NEW)
  1. Enter the Optional features (to reduce code size) menu. Disable these options:
[ ] Support GPIO "bit-banging" devices
[ ] Support LCD devices
[*] Support external sensor devices
[*] Support lis2dw 3-axis accelerometer
[ ] Support software based I2C "bit-banging"
[ ] Support software based SPI "bit-banging"
  1. Exit by typing Q, save by pressing Y.
  2. Build the firmware: make
  3. Find the ID of your KUSBA PRO in DFU mode using lsusb. It should be the device appearing as STM Device in DFU mode.
  4. Flash the firmware: make flash FLASH_DEVICE=1234:5678. Replace 1234:5678 with the ID you found in the above step.
  5. Use ls /dev/serial/by-id/* to find the serial address of your KUSBA PRO. It'll start with: usb-Klipper_stm32f042
  6. Download the adxlmcu.cfg file from this repository.
  7. Upload the adxlmcu.cfg file to your config directory. You can do this on Mainsail/Fluidd etc.
  8. Edit the adxlmcu.cfg file (in Mainsail/Fluidd). Change the MCU serial address (step 12) and the probe points.
  9. Save and close.
  10. If your KUSBA PRO isn't assembled follow the assembly doc first.
  11. Edit your printer.cfg file. Add:
[include adxlmcu.cfg]
  1. Do your input shaper testing. When done comment the include line to disable the KUSBA PRO. (If you don't do this and unplug the KUSBA PRO, Klipper won't work.)
# [include adxlmcu.cfg]