The information in reply #15 is helpful, but to what value did you set the all-important current limit on the A4988 (must be 1 Ampere or less)?
Note that doing so requires you to know the value of the current sense resistors on the driver, so please state that as well.