TMC 2209 with ESP32 not working

Hi , I am trying to drive a Stepper motor using driver MKS TMC2209 with ESP wroom32E.
There are many sample codes in arduino, but 99% of them in the forum are non working with ESp wroom32 E . It is even true with libraries available in Arduino IDE. Is there anyone help me here to drive my motor..... Clock wise, anticlockwise, Controll speed, current. I am using a motor Nema 23 . 4 wire 2 coil stepper motor.

I am suffering on it from many days.

7 posts were merged into an existing topic: Searching a proper Stepper Motor library for driver TMC2209 V1.3 which works with ESP Wroom32 E