Solution
The pre-excitation may be due to magnetic field alignment in permanent magnet stepper motors.
On the first run, the motor starts from a random rotor position, taking time to reach the optimal electrical angle.
On the subsequent runs, the motor retains alignment through detent torque, enabling immediate operation.
This happens because of an electrical angle mismatch between the position at command 7 and the optimized position at command 15.
The recommended solution is to replace the current sequence with 128, 0, 2, 6, 14, 15, which should help avoid the problematic switch-on state.