Zephyr Step/Dir Completion: A GPIO Error Can Consume the Command Without Advancing Position
A stepper controller reports that its commanded steps are complete, but the driver’s position is short of the requested target. Before blaming mechanical slip, inspect whether a failed GPIO operation consumed a step in the software countdown. Zephyr v4.2.0’s common step/direction implementation contains a concrete path where those two counters can diverge.