firmware on the MCU(s). Fix by recompiling and flashing the
firmware.
Your Klipper version is: v0.12.0-100-g600e89ae
MCU(s) which should be updated:
mcu: Current version v0.10.0-323-g80492432
rpi: Current version v0.11.0-234-gd32a8334
Up-to-date MCU(s):
<none>
Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.
mcu 'rpi': Command format mismatch: query_adxl345 oid=%c rest_ticks=%u vs query_adxl345 oid=%c clock=%u rest_ticks=%u```
Thats the message i get
At the top of my printer.cfg the mcu location is
`[mcu rpi]serial: /tmp/klipper_host_mcu`
Below is the entire printer.cfg
#MCU Protocol error - How to recompile and flash easy way
1 messages · Page 1 of 1 (latest)
tried following the guides and i get this error ``` make flash FLASH_DEVICE=/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
Flashing out/klipper.bin to /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
Entering bootloader on /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
Device reconnect on /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0
sudo dfu-util -p 1-1.4 -R -a 0 -s 0x8008000:leave -D out/klipper.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: No DFU capable USB device available
Failed to flash to /dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0: Error running dfu-util
If the device is already in bootloader mode it can be flashed with the
following command:
make flash FLASH_DEVICE=0483:df11
OR
make flash FLASH_DEVICE=1209:beba
If attempting to flash via 3.3V serial, then use:
make serialflash FLASH_DEVICE=/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.4:1.0
make: *** [src/stm32/Makefile:111: flash] Error 255```
Greetings: It seems you are attempting to re-build the external MCU when it is most likely the error you receive is due to the recent changes in Klipper that deal with communications with an external accelerometer, such as the ADXL345. In most cases, that accelerometer is attached to the Raspberry Pi itself so it is the Raspberry Pi MCU code that needs to be re-built. When you launch make menuconfig besure you choose the option to re-make the Linux process:
More information is available here: #announcements message
well i dont have the accelerometer attached at the moment since i already calibrated that
thats how it looks when i type make menuconfig inside the klipper folder
if i then go into micro-controller architecture i get theese options
and my location is not under ls /dev/serial/by-id/* but rather ls /dev/serial/by-path/* as it seems, but i aint really sure
Choose Linux process from that list, save, and continue. It doesn't matter if the accelerometer is currently attached or not. The code to support it is in your Klipper firmware, so the new version sees the difference, and shows the error message. When you choose the `Linux Process, you won't get any of the options to choose a location in /dev/serial, etc.