SHAPER_CALIBRATE and TEST_RESONANCES fail with error "’ToolHead’ object has no attribute ‘cmd_M204’"

Basic Information:

Printer Model: Anycubic Kobra Neo
MCU / Printerboard: HC32F460
Host / SBC : PC
klippy.log
USB-ADXL345.cfg MCU: stm32f103xe
klipper version on both MCU: v0.13.0-210-gd6d858728

Describe your issue:

I setup an ADXL345 to calibrate shaper , but running either command is failing with this error
’ToolHead’ object has no attribute ‘cmd_M204’

what I think is the related klippy log part is below
can you please help resolving the issue ?
Thanks in advance

ADXL345 starting ‘adxl345’ measurements

toolhead: max_velocity: 500.000000

max_accel: 8499.922000

minimum_cruise_ratio: 5.000000

square_corner_velocity: 0.000000

Disabled [input_shaper] for resonance testing

Internal error on command:“SHAPER_CALIBRATE”

Traceback (most recent call last):

File “/home/yazan/klipper/klippy/gcode.py”, line 212, in _process_commands

handler(gcmd)

File “/home/yazan/klipper/klippy/gcode.py”, line 140, in

func = lambda params: origfunc(self.\_get_extended_params(params))

                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/yazan/klipper/klippy/extras/resonance_tester.py”, line 373, in cmd_SHAPER_CALIBRATE

calibration_data = self.\_run_test(gcmd, calibrate_axes, helper,

                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/yazan/klipper/klippy/extras/resonance_tester.py”, line 265, in _run_test

self.executor.run_test(test_seq, axis, gcmd)

File “/home/yazan/klipper/klippy/extras/resonance_tester.py”, line 151, in run_test

toolhead.cmd_M204(self.gcode.create_gcode_command(

^^^^^^^^^^^^^^^^^

AttributeError: ‘ToolHead’ object has no attribute ‘cmd_M204’

Transition to shutdown state: Internal error on command:“SHAPER_CALIBRATE”

klippy.log (2.0 MB)

input_shaper_USB-ADXL345.cfg (381 Bytes)

Already fixed: resonance_tester: replace missing M204 call by nefelim4ag · Pull Request #7017 · Klipper3d/klipper · GitHub

4 Likes

wow that was fast, amazing community and support

now i need to figure out how to update to latest pull request

That PR was merged, so you just need to update Klipper with the Moonraker update manager.

thank you

update and tested it is working fine now

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.