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

🔨 TMC2100 is STANDALONE #27209

Conversation

thisiskeithb
Copy link
Member

@thisiskeithb thisiskeithb commented Jun 25, 2024

Description

While building configs with Marlin's build_all_examples script, I found that all of our Artillery configs were now failing (MarlinFirmware/Configurations#1068) and tracked it down to PR #27113.

PR #27113 exposed a bug with TMC2100 drivers in that they were not properly setup as HAS_TRINAMIC_CONFIG or HAS_TRINAMIC_STANDALONE, thus no MINIMUM_STEPPER_PULSE_NS or MAXIMUM_STEPPER_RATE were set in Conditionals_adv.h.

It has been many years since I've used these drivers, so I had to refresh my memory and after some research, I discovered that these were "standalone" and not "smart" despite the lack of *_STANDALONE name:

image

I initially went through the renaming process to change TMC2100 to TMC2100_STANDALONE, but since the TMC2100 did not have a "smart" variant, the build kept triggering the error I added in Changes.h for the name change. I eventually gave up and reverted to this simple fix/hack instead.

Requirements

TMC2100 config like any of our Artillery configs.

Benefits

TMC2100-based configs will build.

Related Issues

@mh-dm
Copy link
Contributor

mh-dm commented Jun 26, 2024

Thank you for tracking the issue down and this fix

@thinkyhead thinkyhead merged commit bf19951 into MarlinFirmware:bugfix-2.1.x Jun 26, 2024
62 checks passed
@thisiskeithb thisiskeithb deleted the pr/add_tmc2100_to_driver_checks branch June 26, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants