Homing problem with optical endstops

Two days ago,I upgraded my Hypercube Evo (SKR Pro 1.1, TMC 2209) to dual extruders, before this upgrade, I was using sensorless homing for X and Y, but the new print head did not work…
So, today I struggled to install 2 optical endstops (X and Y), and eventually managed to have them functional thanks to the help of JamesH from discourse chat.

Now, no chance to home X and Y…

When I home Y first, all good, but then when I try to home X, carriage goes past the Y endstop, trying go go out of the frame, and I have to use the Big Red Button…

When I try to home X first, carriage jumps to the front left corner and again try to brake through…Big Red Button again…

klippy.log (5.8 MB)

Check the optical photo sensor contacts?
And I remember to remove one pin related to TMC2209 sensorless.

It’s not accurate, so just keep that in mind

I switched backto sensorless homing!

So this topic can be closed!

Thanks all for your help (here and on the chat) !