Endstop configuration error?

Basic Information:

Printer Model: BLV CUBE
MCU / Printerboard:RADDS with ArduinoDue
Host / SBC
klippy.log

I’m going to finish my BLV Cube, but I have a strange problem with my Klipper configuration: when I try to move the motors, they emit a whistling sound but don’t move. I tried changing the order of wires, but nothing works… until I tried with the Z-axis, where everything worked. The only difference was that, instead of the endstops, it used the ‘virtual endstop’ (BLTouch). I tried configuring the other motors (X, Y, and the 3 extruders) simulating the virtual endstop, and they moved! So ti is not a problem with motors, drivers or cables…
I thought there might be an error in the endstops configuration, but actually their state (“triggered” and “open”) is displayed correctly in Fluidd. Endstops are “two wires” type (gnd and signal)
Any suggest? thanks and HAPPY NEW YEAR!

type or paste code here
[stepper_y]
step_pin = PA12
dir_pin = PA13
enable_pin = !PB26
microsteps = 16
rotation_distance = 20
endstop_pin = ^PD9 
position_endstop = -2
position_min = -2
position_max = 300
homing_retract_dist = 10
homing_speed = 50.0
second_homing_speed = 10.0

[stepper_z]
step_pin = PB25
dir_pin = PC28
enable_pin = !PD5
position_min = -2
microsteps = 16
rotation_distance = 4
endstop_pin = probe:z_virtual_endstop
position_max = 460
position_min = -2

klippy(1).log (32.7 KB)

what happens when you hold the end-stop switch in the pressed position with your finger, and then try to move that axis toward the end-stop via gcode? My gut says it will move as well. This could mean that the switch is either a wrong type or is mis-wired.

This is what happens: when I move the Y axis (but also the X…), the motors whistle, then the error ‘No trigger on Y after full movement’ is displayed; if I press the endstop before the whistle stops, the motor stops whistling, gives a slight jolt, and then the same error appears; if I enable the virtual endstop, the motor moves the axis to the endstop correctly; if I replace the endstop with a spare one, there is no improvement. If I keep the endstop pressed from the beginning, the error is ‘Endstop Y still triggered after retract’.
It seems like the endstops are working, but not with the motors!