Skip to content

tmc2209 bug fixes #755

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

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Conversation

cswank
Copy link

@cswank cswank commented May 4, 2025

I guess this means nobody has ever used this driver for controlling a TMC2209 via uart because it panics because the buffer is too small.

Even with this fix I'm unable to turn the motor via uart, but I'm not sure why. If this PR piques someones interest in making a working example I'd be very grateful.

EDIT: I got the motor to turn. The reason turned out to be due to calculating the crc incorrectly. I pushed another commit that calculates crc according to the datasheet.

@cswank cswank changed the title Make write buffer big enough for crc Make write buffer big enough for crc in tmc2209 May 4, 2025
@deadprogram deadprogram changed the base branch from release to dev May 4, 2025 16:38
@cswank cswank changed the title Make write buffer big enough for crc in tmc2209 tmc2209 bug fixes May 4, 2025
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

Successfully merging this pull request may close these issues.

1 participant