2022-10-13 04:20 PM
Hi
I have to connect an STM34 Nucleo board to a TMC2209. I have to setup a single wire UART. Only TX is connected with the TMC board.
I transmitted a datagram and when I try to receive the response I get back the initial data I have e sent.
Does anybody know what could be happening?
does anyone has experience controlling a stepper motor with TRINAMIC TMC2209?
Please, I need help. I am in a bit of a hurry.
Best regards, Raúl
Solved! Go to Solution.
2024-02-11 05:32 AM
I was also struggling with the UART communication with TMC2209, in my case transmit was always working fine but receive wasn't. I solved my issue by enabling halfduplex transmitter (HAL_HalfDuplex_EnableTransmitter) before sending and enabling halfduplex receiver (HAL_HalfDuplex_EnableReceiver) before receiving. An example driver code is available on my github page (https://github.com/veysiadn/tmc_2209), the other parts of the code is modified from TMC2209 arduino library (https://github.com/janelia-arduino/TMC2209).
Good luck,
Veysi