Hi akmolski,
That all sounds correct. TTL mode should be used with Gecko G540. Do you have a GND connection between KFLOP and the G540?
Are the Steppers energized while not moving (getting warm and have holding torque)?
When you run the C Program to flip the pulse and direction polarity does the Step Pin change voltage from ~ 0V to ~ 3.3V?