Stepper motor control for high speed

A couple of tutorials that may help.
Stepper basics.
Simple stepper code.

TB6600 User Guide

What does the while(Serial) do? You do not open a serial port.