ESP32, TMC2209, and UART Control of Microstepping

What's the budget?

Whoever takes this will most likely need to get your exact setup 'cause IMO the problem is buried somewhere on your hardware.