I wired only L297 but it didn't worked well....
As you can see in the pic. i wired the outpins 4,6,7 and 9 to led than to ground. Only the second and the fourth one worked than i send pulse ( i connect the pin 18 to 5 volt ) than they went off.
Sync , home , inh1 and inh2 to nothing
Gnd to ground
Sens1 and sens2 to ground by resistor ( 0,5 ohm )
A , B , C and D to the ground by leds
Enable , control , Vs , CW/CCW , Half/Full and reset to 5volt
Vref to 3 volts
OSC as in the datasheet