TMC2209 stepping extremely slow

almost forgot

welcome to the arduino-forum.
well done posting your code as a code-section in your very first posting.

The following as not at all meant as "beating on you" it is meant as advice to proceed faster.
Maybe my assumptions are wrong. If they are wrong I apologise for beeing wrong.

Well if it took you days to get the steper-motor working at all my guessing is:

very ineffective communication.

Of course I haven't read this discord conversation but if you did it similar to how you do

  • just for entertainment - chatting on WhatsApp, SnapChat or something similar I am very sure it was ineffective.

In programming and in electronic a lot of details are important.
You need quite a lot knowledge to know which details are really important and which not.
Hence you have to be precise and detailed to get things working.

I'm pretty sure that you agree and will follow the way how to solve your problem mimimum 200 minutes faster.
This requires to invest 20 minutes of your precious time to read how to speedup solving your problems.

Directly after registering you got presented informations how to speed up solving your problem.
You should really read it.

best regards Stefan