Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.5k stars 5.32k forks source link

After updating Klipper (trough fluidd) and flashing the MCU, i get an mcu 'host': Command format mismatch: error #4971

Closed olif0x closed 2 years ago

olif0x commented 2 years ago

Hey there, yesterday at around 3 am GMT+1 i've decided to update all components trough the Fluidd GUI.

  1. Moonraker
  2. Klipper (Errors started to happen)
  3. afterwards OS Updates (to ensure that everything is up2date)

the first errors appeared, because in my pause, cancel makros it didn't accept the default_parameter_x commands: (this is out of the klippy.log - in my current makros.cfg those parts are already completely commented out as a workaround... so i dunno why the klippy.log still have these makros before the upgrade happened) image

so i completely commented those macros out.

Afterwards i then got the error seen in the screenshot. image

I prepared the mcuflash files for my skr-mini-e3-v2 with the following command:


pi@fluiddpi:~ $ sudo service klipper stop
[sudo] Passwort für pi:
pi@fluiddpi:~ $ cd ~/klipper
pi@fluiddpi:~/klipper $ git pull
Bereits aktuell. (already on latest version)
pi@fluiddpi:~/klipper $ make clean
pi@fluiddpi:~/klipper $ make menuconfig
  Creating symbolic link out/board
Loaded configuration '/home/pi/klipper/.config'
No changes to save (for '/home/pi/klipper/.config')
pi@fluiddpi:~/klipper $ make

And afterwards i did flash the mcu:

`pi@fluiddpi:~/klipper $ ./scripts/flash-sdcard.sh -f ~/klipper/out/klipper.bin /dev/ttyACM0 btt-skr-mini-e3-v2
Flashing /home/pi/klipper/out/klipper.bin to /dev/ttyACM0
Checking FatFS CFFI Build...
Connecting to MCU...Connected
Checking Current MCU Configuration...Done
MCU needs restart: is_config=1, is_shutdown=0
Attempting MCU Reset...Done
Waiting for device to reconnect...Done
Connecting to MCU...Connected
Initializing SD Card and Mounting file system...

SD Card Information:
Version: 2.0
SDHC/SDXC: False
Write Protected: False
Sectors: 245760
manufacturer_id: 0
oem_id: 0
product_name: APPSD
product_revision: 0.0
serial_number: 000002EE
manufacturing_date: 9/2020
capacity: 120.0 MiB
fs_type: FAT16
volume_label:
volume_serial: 2826674516
Uploading Klipper Firmware to SD Card...Done
Validating Upload...Done
Firmware Upload Complete: firmware.bin, Size: 23280, Checksum (SHA1): 2D48ACAB6D73784074331DFBD644B3D9E5A9E8BA
Attempting MCU Reset...Done
Waiting for device to reconnect....Done
Connecting to MCU...Connected
Verifying Flash...Version matched...Done
Firmware Flash Successful
Current Firmware: v0.10.0-167-g2b7d0bba
Attempting MCU Reset...Done
SD Card Flash Complete
pi@fluiddpi:~/klipper $ sudo service klipper start

`

And i've still got the error on the klippy GUI: image

After the mcu flash i also did disconnect my 3d-printer from the power to let it completly powercycle.

(CR10s Pro v1 but with an skr-mini-e3 as the mainboard and a microSwiss Extruder)

I've attached all logfiles and my config-files maybe you could help me make my printer run again? :-) (They are all in the zip-file) I wanted to start a 2-day print :D

image

Should have had waited with that update :P ;-)

many thanks and best regards Olifox github_issue_klippy_log&config-files.zip

standalone klippy-Log file as requested on contact: klippy.log

Sineos commented 2 years ago

Update Klipper and MCU again. Also see https://www.klipper3d.org/FAQ.html?h=update#how-do-i-upgrade-to-the-latest-software

For the macros, replace

[gcode_macro CANCEL_PRINT]
rename_existing = BASE_CANCEL_PRINT
default_parameter_x = 0
default_parameter_y = 0
default_parameter_z = 10

by

[gcode_macro CANCEL_PRINT]
rename_existing = BASE_CANCEL_PRINT
gcode:
    {% set x = params.x|default(0)|float %}
    {% set y = params.y|default(0)|float %}
    {% set z = params.z|default(10)|float %}
olif0x commented 2 years ago

Thx for your reply!

Ok, i've updated the makros and also Updated Klipper and the MCU again as in the steps mentioned (altough make flash doesn't work for me). Still no Luck :( image

Why does it shop up 2 times with an host-entry? is there maybe a way to remove that fluidd entry?

I guess my only chance is to start from scratch :-( Logfiles: klippy (1).log

Angelol125 commented 2 years ago

I guess u also use ur rpi as an mcu for input shaper. that also needs to be updated.

Sineos commented 2 years ago

Yep, sorry, missed this one: grafik Basically the message is quite clear: host and mcu have same version, fluiddpi is off

You need to build the linux mcu in make menuconfig

olif0x commented 2 years ago

Yep, sorry, missed this one: grafik Basically the message is quite clear: host and mcu have same version, fluiddpi is off

You need to build the linux mcu in make menuconfig

Yes that was it. I also had another friend looking at all those configs and just at the end he also mentioned it.

and now that i remember, when i first wanted to update the mcu i was wondering why linux processes where activated in make menuconfig :-D which i completely ignored and changed everything so that the printer board gets updated :D

well, lesson learned ;-) Printing works again (altough in the full end i just reinstalled fluiddpi to have a clean start and then updated the linux mcu as then came the hint in with the linux process). Then everything was working again :-)

Many thanks for the help!