If the stepper is driving the printer head away from the endstop on a particular axis on homing (in your case the X direction), there might be a few possible problems at hand: The stepper cables are plugged in reversed; The wires in the stepper cable are switched
. pke0rpr7kh.pages.dev/308pke0rpr7kh.pages.dev/206pke0rpr7kh.pages.dev/869