- Go to klipper directory
- call make menuconfig
- select
- Micro-controller Architecture
- Raspberry PI RP2040
- Communication Interface
- USB
- Micro-controller Architecture
- save configuration
- build firmware
- call make
- file needed for flashing can be found in
- klipper/out/klipper.uf2
- Press the BOOTSEL button on the Raspberry Pi Pico,
- connected the USB cable.
- The RPi Pico will be detected as USB flash device
- Mount flash device
- Copy klipper.uf2 to RPi Pico Flash Drive.
- RPi Pico should now automatically perform a reboot and execute downloaded klipper firmware.
- From now on the RPi Pico Module will be detected as an serial interface. Which can be configured in the klipper configuration.
During my development is created a small script which is placed in the klipper folder to automate the process of mounting, copying and unmounting.
Before executing it be sure that the RPi Pico is available at /dev/sda1
mkdir -p /tmp/rpi
sudo mount /dev/sda1 /tmp/rpi/
sudo cp out/klipper.uf2 /tmp/rpi/
sudo umount /tmp/rpi