STM32F103 and TMC2209 Stepper driver UART connection, no reply.
I have been trying to get a TMC2209 and STM32F103 working over UART for a while now.
I have followed 2 posts ( I am pretty sure correctly ) on this but I can't add them here as I am a new member, they are already on this community.
I have found online that I need to bridge a connection at the back of the driver board I am using, I have done that.
I have also found that for the start UART comms I need to set "GCONF.pdn_disable = 1"
I think that is done correctly in the code below but feel free to correct me.
I have connected a 1K resistor between the Tx and Rx lines as in the datasheet and in one of the posts above.
My problems start with the UART connection I believe.
I have included nothing else in this code so I can just look at getting this working.
I get a 0x05 on Recv[0] each time I run the code but I do not get any other values, I expect to see 0xFF in Recv[1] but I get 0x00.
I get the sync nibble but then nothing else, when I disconnect the Rx and Tx line from the TMC2209 I still get the 0x05 so that makes me thing something is wrong there.
I have tried to use the Receive to idel but I get the same results as the above.
I have played with delays before Receving but then I don't even get the 0x05.
I worried that I might be sending the data in the wrong order ?
All I am trying to do is read back the register I just wrote to.
:
Any pointers would be great on where to go to from here.
Thanks all.
