Hi, @sat20 Welcome to the forum.
Thanks for using code tags.
Can you please post a circuit diagram of your project. An image of a hand drawn schematic will be good, please include all power supplies, component names and pin labels.
Can you post links to stepper and driver units spec/data please?
Thanks.. Tom..