# Strange behavior on XY-movement after update

**URL:** <https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499>\
**Category:** General Discussion\
**Created:** [January 25, 2024, 8:39pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499 "2024-01-25T20:39:34Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 27, 2024, 7:50am UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/21 "2024-01-27T07:50:45Z")

</div>

> [@limefrog](#):
>
> …made up a SanDisk SD card with armbian and set everything up with KIAUH just to find out that it wont connect at all.

Have you tried a new SD card or not? For this error, this is definitively something I would test.  
WRT Armbian, I have two boards running on Armbian Bookworm and not noticed any strange Klipper behavior except [Klipper-mcu Service Fails to Start](https://klipper.discourse.group/t/klipper-mcu-service-fails-to-start/12219)

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [January 27, 2024, 8:58am UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/22 "2024-01-27T08:58:21Z")

</div>

At least my Octopus Pro on my IDEX works fine as well.  
Does the homing suchend in any way?  
Meaning does one axes triggers its endstop or when exactly occurs the error.  
What happens when you manually trigger the endstops or perform a stepper buzz on the X and Y steppers?

Swapping stepper drivers is always an option even when the dumps look fine.  
Also test a brand new SD card as requested with a simple Klipper installation.

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 3:44pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/23 "2024-01-27T15:44:13Z")

</div>

> [@Sineos](#):
>
> [Klipper-mcu Service Fails to Start](https://klipper.discourse.group/t/klipper-mcu-service-fails-to-start/12219)

… I made up two SanDisk SD cards which both do not connect to the Octopus. One made of Armbian set up with KIAUH and one made of MainsailOS updated with KIAUH. The latter I have in the RPi at the moment.

I was able to compile Klipper v0.12.0-100 with the installation an flashed it on MCU and RPi.

```auto
Version: v0.12.0-100-g600e89ae
  Linking out/klipper.elf

$ make flash
  Flashing
Installing micro-controller code to /usr/local/bin/

```

but connection does not happen.

```auto
Klipper reports: ERROR

mcu 'rpi': Unable to connect
Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Error configuring printer

```

According to [Sineos](https://klipper.discourse.group/u/Sineos) suggestion above I tried:

```auto
$ systemctl status klipper-mcu

```

and got:

```auto
Unit klipper-mcu.service could not be found.

```

tried:

```auto
sudo service klipper-mcu start

```

and got:

```auto
Failed to start klipper-mcu.service: Unit klipper-mcu.service not found.

```

changing to the previous Samsung SD Card connects immediately, shows correct version of MCU and RPi (also updated to v0.12.0-100) an does everything but moving XY, which crashes instantly.

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 27, 2024, 3:58pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/24 "2024-01-27T15:58:10Z")

</div>

You simply did not follow [RPi microcontroller - Klipper documentation](https://www.klipper3d.org/RPi_microcontroller.html)

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 4:00pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/25 "2024-01-27T16:00:15Z")

</div>

> [@LifeOfBrian](#):
>
> Does the homing suchend in any way?  
> Meaning does one axes triggers its endstop or when exactly occurs the error.  
> What happens when you manually trigger the endstops or perform a stepper buzz on the X and Y steppers?

Homing proceeds as follows (head is nearly centered above bed, no endstop triggered): After invoking the homing the bed is lowered by 10mm to get free space for XY-movement. At the moment the X-movement should set in, it instantly crashes. No X-movement happened at all. Same is if just Y-homing is invoked for Y-movement, Z-lowers then instantly crash. Since it is a coreXY machine that is of no matter since both steppers have to move.

Buzzing is something i haven’t tried yet. Will go back to the previous Samsung SD card and do…

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 4:02pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/26 "2024-01-27T16:02:16Z")

</div>

> [@Sineos](#):
>
> You simply did not follow [RPi microcontroller - Klipper documentation](https://www.klipper3d.org/RPi_microcontroller.html)

I’m afraid youre right, made that just out of my head. Will read and regret, i assume. 😉

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 4:24pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/27 "2024-01-27T16:24:53Z")

</div>

> [@LifeOfBrian](#):
>
> perform a stepper buzz on the X and Y steppers

O.k. buzzing does someting! I was able to buzz z,z1,z2,x,y! All of them moved!

invoking

```auto
17:17 FORCE_MOVE STEPPER=stepper_x DISTANCE=10 VELOCITY=10

```

led to crash after moving the 10 millimeters.

After restaring

```auto
17:18 FORCE_MOVE STEPPER=stepper_x DISTANCE=-100 VELOCITY=10
17:18 FORCE_MOVE STEPPER=stepper_x DISTANCE=-50 VELOCITY=10
17:17 FORCE_MOVE STEPPER=stepper_x DISTANCE=20 VELOCITY=10

```

worked but crashed one second after last movement was done!

After restaring

```auto
17:22 FORCE_MOVE STEPPER=stepper_y DISTANCE=-100 VELOCITY=10

```

worked but crashed one second after last movement was done also!

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 4:46pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/28 "2024-01-27T16:46:55Z")

</div>

> [@limefrog](#):
>
> Will read and regret

Regretting! Ashes on my head and thank you [Sineos](https://klipper.discourse.group/u/Sineos).

I made up the SanDisk with MainsailOS working now. Shows same behavior (but needed more speed to crash?):

```auto
17:34 Klipper state: Shutdown
17:34 FORCE_MOVE STEPPER=stepper_y DISTANCE=-100 VELOCITY=100
17:34 FORCE_MOVE STEPPER=stepper_y DISTANCE=200 VELOCITY=10
17:33 FORCE_MOVE STEPPER=stepper_y DISTANCE=100 VELOCITY=10
17:33 FORCE_MOVE STEPPER=stepper_y DISTANCE=-100 VELOCITY=10
17:32 FORCE_MOVE STEPPER=stepper_y DISTANCE=10 VELOCITY=10
17:32 FORCE_MOVE STEPPER=stepper_x DISTANCE=10 VELOCITY=10

```

after all there still is a spark of life in the machine. Thank you guys for showing me! But how to get the genie out of the bottle again?

[240127\_klippy\_sandisk.log](https://klipper.discourse.group/uploads/short-url/pcpMxq0pMmTT22FhsRnta1PPn7G.log) (589.3 KB)

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 27, 2024, 5:51pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/29 "2024-01-27T17:51:44Z")

</div>

Unfortunate that it did not work out with a new SD card. This would have been an easy fix.

Sorry, no further idea. Do you happen to have a spare Pi or similar SBC to try?

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 6:09pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/30 "2024-01-27T18:09:24Z")

</div>

> [@Sineos](#):
>
> Do you happen to have a spare Pi or similar SBC to try?

… Have to strip my Hometheatre for that or have a leftover RPi 1 which won’t be sufficient, will see…

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 27, 2024, 8:33pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/31 "2024-01-27T20:33:29Z")

</div>

… changed USB-cable between Octopus an RPi to no avail …

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 1:25pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/32 "2024-01-28T13:25:48Z")

</div>

… have changed the RPi with an identical one - same thing.

Tried the previous RPi to propel the old CR10 via a BTT SKR Mini E3 v2.0 - worked. I did not print but homing was carried out without a problem, jogging around with no problem again.

What remains seems to be the Octopus… …or the TMCs… …or the steppers… …or whatever…

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 1:46pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/33 "2024-01-28T13:46:25Z")

</div>

> [@limefrog](#):
>
> I did not print

…small testprint running on CR10, will change things back then…

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [January 28, 2024, 1:47pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/34 "2024-01-28T13:47:45Z")

</div>

Very strange… 🥴

As Z works fine can you just connect X and Y motors to two of the Z motor ports, change the config accordingly and test again?

Jumpers for the respective driver mode are set correctly I hope?!  
If all goes as planned I’ll work on my NoName later and will update Klipper on all MCUs and check this as well.  
If this would be a Klipper thing others should have this issue as well.  
And my printer is already at 0.12.0.8x I think and homed at least X and Y properly. Need to update due to changes on ADXL code and my ADXL PCB being on an older version…

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 1:58pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/35 "2024-01-28T13:58:04Z")

</div>

> [@LifeOfBrian](#):
>
> Jumpers for the respective driver mode are set correctly

I didn’t change anything to the hardware and everything was - more or less - running since half a year.

I plan to configure the two leftover TMC slots (with fresh TMCs if i can find them 😉 ), because i don’t want to break what’s working so far.

I’ll keep my fingers crossed for your NoName! 😃

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 3:01pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/36 "2024-01-28T15:01:12Z")

</div>

…Just took a spare stepper and changed one - all the same, changed the other - same also.

Strangely the crash happens after the forced movement was carried out!

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [January 28, 2024, 3:29pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/37 "2024-01-28T15:29:29Z")

</div>

So at least the stepper drivers are not causing the issue.  
Still can be the ports (board) itself, hence you should swap the motor connections and alter the config. You can just easily backup the current config files and will not lose anything!

Just ran through your klippy.log to again check for anything suspicious.  
Though not related to the issue I would advice you to have the feeder not running in StealthChop mode due to the immense acceleration. And avoid having a **hold\_current** being set.

Those values don’t look right/too low:

```auto
max_accel_to_decel = 2500
square_corner_velocity = 2.50
max_z_accel = 12.5

```

As you seem to have mechanical endstops what happens (already asked for that information) when you manually trigger them?  
What is the status of the X and Y endstops when not being triggered?  
Use the following section under the **Machine** tab in MainSail:  
 ![grafik](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/0/00f77314f270f1265eaa40b9f1990b98d833c042.png)

You wrote some posts ago that the force move command succeded or that it crashed after the move finished.  
How did the motors sound while moving, normal motor noise or a strange one?

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 11:30pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/38 "2024-01-28T23:30:06Z")

</div>

> [@LifeOfBrian](#):
>
> So at least the stepper drivers are not causing the issue.

That’s still unclear - I’ve changed the steppers, not the drivers so far. I had no time to look where I’ve hidden those spare TMCs yet, maybe I should wait for Easter!

> [@LifeOfBrian](#):
>
> max\_accel\_to\_decel = 2500  
> square\_corner\_velocity = 2.50

this looks strange, because my printer.cfg contains:

```auto
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 5000
max_accel_to_decel: 5000
square_corner_velocity: 5
max_z_velocity: 10
max_z_accel: 12.5

```

The Z-acceleration and velocity is withholdly chosen, because the Z-axis is a heavy construction, the bed is massive 6mm aluminum also. Motors are supported by 2:1 belt reduction on the leadscrews to avoid sagging of the bed (B.t.w.: The numbers are still doubled against the cr10’s default settings). Do you have a suggestion I should try?

> [@LifeOfBrian](#):
>
> And avoid having a **hold\_current** being set.

Acknowledged! This is a leftover from the early days - I have commented out holdcurrents quite a long time ago, but missed the feeder.

> [@LifeOfBrian](#):
>
> I would advice you to have the feeder not running in StealthChop mode due to the immense acceleration.

This needs a bit more explanation, I’m afraid…

> [@LifeOfBrian](#):
>
> As you seem to have mechanical endstops what happens (already asked for that information) when you manually trigger them?

Endstops are optical and work as expected. Tried them in the beginning already (mentioned very discreet in the first post 😉 ) and did it again on your demand but missed to write that. So, everything is fine here.

> [@LifeOfBrian](#):
>
> How did the motors sound while moving, normal motor noise or a strange one?

No strange things here also, quiet and calm. But i admit that i use the forced movements with care at low speed only, but tried 100mm/s one time with no peculiarity also.

After all i have still two unchecked sources of malady (correct me if I overlook something):

- the TMCs
- the Octopus

But if i keep in mind, that the neo pixels are out of order since the first moment of trouble (have seen two of them showing a different color than black once before next crash happenend) and knowing that this normally wont be influenced by far from the TMCs i have my fears…

---

<div class="post-metadata">

**Author:** ![limefrog](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/limefrog/32/9762_2.png) [@limefrog](https://klipper.discourse.group/u/limefrog)\
**Post date:** [January 28, 2024, 11:34pm UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/39 "2024-01-28T23:34:01Z")

</div>

If all this is healed, i swear to thoroughly go through my config to clean things up! 🕶  
(and maybe pick up some advises to make things better)

---

<div class="post-metadata">

**Author:** ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)\
**Post date:** [January 29, 2024, 7:51am UTC](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499/40 "2024-01-29T07:51:35Z")

</div>

New week, new attempts of solving that… 😃

> [@limefrog](#):
>
> `max_z_accel: 12.5`

How big is the bed?  
I had a 10 mm cast aluminum bed with only two spindles (ok, ball screws…) and not speed reduction and had several hundreds of mm/s².  
I personally find 12.5 mm/s² very conservative even for normal spindles. But as this is not the main topic here keep it as it is.

> [@limefrog](#):
>
> This needs a bit more explanation, I’m afraid…

StealthChop is not capable of supporting high acceleration at least with some certain load. Or you have to crank up the current what will either burn your drivers or “melt” you stepper motors and surrounding plastic parts.  
A feeder should accelerate quickly and due to the pressure on the filament has some load.  
So keep it in SpreadCycle mode and don’t miss a step.

**BTT:**

> [@limefrog](#):
>
> I’ve changed the steppers, not the drivers so far.

So you swapped the actual motors already with no change?  
Then either test other drivers with risk of damaging them if the board has an issue or connect the motors to the working Z ones and adapt you configuration to this new setup.  
Should be sufficient to just change the section headers to the correct stepper names but don’t forget about the endstops.

I’m now waiting for my new bed to arrive…

[Previous page](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499.md?page=1)

[Next page](https://klipper.discourse.group/t/strange-behavior-on-xy-movement-after-update/13499.md?page=3)
