How to connect bipolar stepper motor to Arduino with L297 and L298N drivers?

I have an L298N and it only reaches room temperature driving two DC motors.