Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with reading XACTUAL from TMC5160 #46

Open
hajilisamir opened this issue Nov 10, 2023 · 3 comments
Open

Issues with reading XACTUAL from TMC5160 #46

hajilisamir opened this issue Nov 10, 2023 · 3 comments

Comments

@hajilisamir
Copy link

Hi,

I have a situation that when I write 0x05 0x07 0x21 0x9E data package to my stepper driver through UART I read nothing. I confirm this through Logic Analyzer.
TMC issue

Any ideas?

Thanks in advance
Samir

@joshua-8
Copy link

Hi Samir,
I've never used a TMC5160, but looking at the datasheet in section 23.1 Initialization Examples, it suggests that you can "query XACTUAL" with UART write: 0x05 0x01 0x21 0x6B so that's probably worth trying. How did you choose the 4 bytes in your data package?
Good luck,
joshua-8

@hajilisamir
Copy link
Author

hajilisamir commented Nov 10, 2023

Hi Joshua,

Thank you for your reply.

It is the similar message. 0x07 is the address instead of the 0x01 from the example. It is different since I have multiple steppers in my set up.

To give you more details about the issue; I have this messages sent in the past and I was able to read the signals correctly with Logic Analyzer, and since then I was working both on HW and SW, now something is up with which I don't understand, so steppers do not reply back. Could be a hardware issue. Here is an example when the stepper driver replied to the same 4 byte data package.

image

Till I confirm if it is a HW issue or not, do you have any clue what would be going wrong?
Everything else is working, I can move the motors and etc.

Thank you and best regards,
Samir

@joshua-8
Copy link

joshua-8 commented Nov 10, 2023

If the stepper responds to other commands just not x actual that's just strange and I'm sorry to say I have no other ideas.

Can you read from any registers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants