Leapfrog Bolt pro - upgrade?

# Install & Use KIAUH to Build Klipper for the Bolt Pro (ATmega2560)

KIAUH handles the environment setup, Klipper install, Moonraker, Mainsail/Fluidd, and firmware building.  
Your Bolt Pro board is an **ATmega2560**, so the build target is the same as an Arduino Mega.

---

## 1. Install KIAUH  
If you haven’t already:

```bash
cd ~
git clone https://github.com/th33xitus/kiauh.git
cd kiauh
./kiauh.sh

Inside the menu:

  • Install Klipper
  • Install Moonraker
  • Install Mainsail or Fluidd (your choice)

KIAUH handles all dependencies automatically.


2. Build Klipper firmware through KIAUH

From the KIAUH main menu:

[4] Advanced
   → [1] Build Firmware

This launches Klipper’s menuconfig.


3. Set the correct firmware options

Inside menuconfig, choose:

  • Microcontroller Architecture: Atmega AVR
  • Processor Model: ATmega2560
  • Clock Reference: 16 MHz
  • Communication Interface: Serial (UART0)
  • Baud Rate: 250000

These match your Marlin config exactly.

Save and exit.


4. KIAUH builds the firmware

After exiting menuconfig, KIAUH automatically runs:

make clean
make

When it finishes, it tells you where the firmware file is located:

~/klipper/out/klipper.elf.hex

That’s the file you’ll flash to the Bolt Pro board.


5. Flash the firmware

Your board behaves like an Arduino Mega, so flashing is done with avrdude.

Find the serial device:

ls /dev/serial/by-id/

Then flash:

avrdude -v -p atmega2560 -c wiring \
  -P /dev/serial/by-id/usb-<your-board> \
  -b 115200 -D \
  -U flash:w:~/klipper/out/klipper.elf.hex:i

Notes:

  • Flashing always uses 115200 baud, even though Klipper later uses 250000.
  • If flashing fails, press the board’s reset button and retry within 5 seconds.

6. Point Klipper to the board

In your printer.cfg:

[mcu]
serial: /dev/serial/by-id/usb-<your-board>
restart_method: arduino
baud: 250000

Restart Klipper and you’re connected.