The movement home works, but the movement after goes in the opposite direction

Hello! I want to ask for help, because I can’t do it myself.

The crux of the problem is that I have a corexy printer and when setting up I was able to configure it so that it correctly drives home in all axes and responds to endstop. But the problem is that when he arrives home and I try to move him in the positive direction, the printer tries to break the endstops, as if trying to move in the other direction.

I played around with a lot of settings and also with the hardware, i.e. I have tried all combinations of plugs for the X and Y axes.

The Z axis is working correctly.

Orange Pi PC + Arduino Mega 2560 + Ramps 1.4.

Before that, there was Repetier, which worked flawlessly.

klippy.log (315.5 KB)

config.conf (2.3 KB)

Sheme

I apologize for the hasty creation of the theme … The problem is observed with the TMC2208 drivers on the X and Y axes. Replacing them with a4988 seems to be how everything works. The question then is how to start the TMC2208. Do I have to configure [tmc2208 stepper_x]?