I am using 3 stepper motors with DM542 driver to build a pick and place robot using Nucleo-F746ZG. For the movement of stepper motor I am using this library :-
#include "stepperMotor.h"
#include "mbed.h"
int motorSpeed; // Steper speed
sMotor::sMotor(PinName A0, PinName A1, PinName A2...