X move in wrong direction for 50mm then stop

Modified Raptor 2
Manta M8P V 2.0

After installing the new motherboard I have a problem with the X movement, when I try to home X it moves 50mm in the wrong direction, tried to add an ! in front of PG12 still moves in the wrong direction.
After it moves I still see the hour glass for a while and then i gives the error that X end stop have not been triggered after movement.

klippy.log (271.6 KB)

# Motor5
[stepper_x]
step_pin: PG13
dir_pin: PG12
enable_pin: !PG15
microsteps: 16
rotation_distance: 8
endstop_pin: ^!PF3
position_endstop: 0
position_max: 400
position_min: 0
homing_speed: 50


[tmc5160 stepper_x]
cs_pin: PG14
interpolate: False
run_current: 1.5
hold_current: 1.0
sense_resistor: 0.110
#driver_SGT: 0
spi_software_mosi_pin: PG6
spi_software_miso_pin: PG7
spi_software_sclk_pin: PG8
stealthchop_threshold: 0

The exclamation mark (!) does not appear at the cfg at the end of the klippy.log.

[stepper_x]
step_pin = PG13
dir_pin = PG12
enable_pin = !PG15
microsteps = 16
rotation_distance = 8
endstop_pin = ^PF3
position_endstop = 0
position_max = 700
position_min = 0
homing_speed = 50

Have you reloaded the config to Klipper after you made the change?

I removed the exclamation since it made no difference.

Yes, I do a save and restart and I even did a Firmware restart.

Have you checked the operation of the endstop sensor?

You can (should) check its operation before trying to do any homing.

Yes, I checked the sensor and in Mainsail they show correct when i trigger both the X and the Y.
I can home X with no problems.
The problem is that when I home X it moves away from the end stop, even if i manually move the extruder to touch the endstop switch and it shows closed in Mainsail.
I even tried to switch X and Y on the Manta and also switch the endstop switches.
My problem is that when I home X it only moves 50 mm in the wrong direction and then it stops. I can hit home again after it is finishing the spin wheel and it will move another 50 mm and again until i get to the opposite side.

You’re saying it’s a “modified Raptor 2”; what exactly are your modifications? Going by your klippy.log, it looks like you’ve put a 2 stepper Z-tilt bed option on it as well as two Y axis steppers.

I don’t see any strange macros.

How did you configure the jumpers on the board? Did you put in the diag jumper for M2 (which is the one that you seem to be running stepper_x on)?

Have you tried to swap the stepper driver modules? (e.g. X ↔ Y)


I had a deeper look into the klippy.log.

I found no clue to your mentioned issue there.

Issues began when you extended the printer.cfg for the use of EBBcan bus.
There are lots of error messages that Klipper is not able to reach the EBBcan module.

At this state, Klipper is not working at all.

The errors cam when the X switch was engaged, the board would shot down. I the rewired it to the same as the Y and it worked.
My next step was to switch the Y and cables on the board and see if that works or the problem moves to Y.

1 Like

The Raptor 2 had the to Z original, i added a extra X because the board is now 800 mm long instead of the original 400 mm. I haven’t actually added the motor yet, that is why it is commented out.
I did see other having diag jumpers, but i don’t see where it is on the diagram of the board.

In Blue i have four jumpers on the first (top) and second row. I have nothing on the green.

I found that if I use any motor beyond the first four I get the same result.
I move everything down to the first four and it works. I was planning to add a extra stepper to the Y, but for some reason I can not get anything working on 5 to 8.

I see this in the default Klipper config from BIQU:

The M8P only has 4 heater outputs which leaves an extra stepper

This can be used for a second Z stepper, dual_carriage, extruder co-stepper,

or other accessory such as an MMU

I’m using the Motor 4 for the second Z stepper and it looks like I can only use the 5 to 8 for Extruders.