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
2025-01-07 10:41 AM
Hello,
Sorry to revive an old thread, but were your UART tests performed on the TMC2209 EVAL Board? (https://www.analog.com/en/resources/evaluation-hardware-and-software/evaluation-boards-kits/tmc2209-eval.html)
I'm facing the same issues of the original poster, and I made sure other aspects discussed in the thread are correct.
Best Regards,
Lucas
2025-01-08 06:45 AM
Hello, in my case it was this: https://www.mouser.se/ProductDetail/ADI-Trinamic/TMC2209SILENTSTEPSTICK?qs=TuK3vfAjtkVcIncpv7%2FUag%3D%3D&mgh=1&utm_id=20706020061&gad_source=1&gclid=Cj0KCQiA4fi7BhC5ARIsAEV1YiaIb6NhhA0V_fueTlvUmZGxbY5nmMi3xvbyBD9pQhnSyjDrdAFsg7YaAnX7EALw_wcB Slientstepstick board, and above implementation on github is currently working for me.
2025-01-08 02:59 PM
Hi,
First of all thank you for github!!
I am using a tmc2209 with a stm32f411, I can transmit information and make the motor turn with your movement function but i cant read the SallGuard neither the steps couter. I am using you setup from the examples and i changed the uart number for the one i am using. Could it be Uart configuration?? I tried asynchronous and one wire and neither of them work. The most funny thing is that if I call the stallguard get value function and the step counter function right next, I receive values in the stallguard that seem good, the starty at 400 and some and go lower if I apply pressure to the motor.