Update Klipper with error: cannot lock ref 'refs/remotes/origin/work-mcuerror

Basic Information:

Printer Model: E3PRO
MCU / Printerboard: 4.2.7
Host / SBC RASPI
klippy.log

I I would like to update Klipper from v0.12.0-159 > v0.12.0-249

cd ~/klipper
evpro3KL:~/klipper $ git pull

error: cannot lock ref ‘refs/remotes/origin/work-mcuerror-20240615’: unable to resolve reference ‘refs/remotes/origin/work-mcuerror-20240615’: reference broken
From GitHub - Klipper3d/klipper: Klipper is a 3d-printer firmware

my mcu device: STM32F103 with # a “28KiB bootloader”
/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0

klippy.log (98.3 KB)

Far shot, since I’m by no means a git expert:

  1. Log in via SSH and change to your /home/.../klipper folder
  2. Run the commands:
git fetch origin
git reset --hard origin/master

and if this does not work, then run:

git gc --prune=now

Don’t blame me if aliens abduct your dog.

Thank you for your quick reply.

I have uninstalled Klipper and reinstalled it. Now the update is also on it.
Now I have to update the MCU somehow, that should work automatically with 4.2.7?

No, the MCU needs manual updating and is done the same way as the initial setup you performed, i.e. by again executing

make menuconfig
make

and using the appropriate settings for your board.

I’m doing that right now, but it doesn’t work via usb/serial.
Is it only possible via SD card?

Yes, or by using SDCard updates - Klipper documentation

Hi,

i have used

./scripts/flash-sdcard.sh /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 creality-v4.2.7

did not work immediately no connection. I then made it analogue via SD card.

Thanks for the quick info!!!