I'm using the driver to drive a Nema 17, 400 steps/rev motor using STM32F303. The problem is that when i go to frequencies of the PWM signal below 1KHz and above 2KHz, the motors stall with a high pitch sound. When i drive the Step pin from a square wave signal generator, i go maximumly to 10KHz. I thought my PWM signal from the STM32 should be at least 4v in amplitude as compared that of the signal generator but still i cant get passed the 2KHz limit. Anyone who has any idea what the cause could be?