[2.0.x] Support TMC2660#11998
Conversation
|
The file names have to be shortened. I have fought with Marlin 2.0 for 2-3 days now, only to find that the path didn't exist to one of the files due to the file name being too long. This was very frustrating, and I think that the filenames, specifically in this library, need to be shortened. |
|
Use PlatformIO or Arduino IDE 1.9.0 or change the |
|
I tested this change. Interesting that drivers constantly reports overtemperature |
|
Please merge this fix, thanks! |
|
I see we have a few instances of |
e0fd1b4 to
1e9ec00
Compare
|
SPI and stallGuard. I didn't want to create a new collective macro when it was just two drivers and there are only three instances where it would apply. |
fd6395f to
08f824c
Compare
I figure it's good to be expressive and make it so that we only have to change it in one place as new drivers are introduced, even though we might end up adding to the "conditional overload." But then, I suppose we crossed that bridge a while ago. |
@teemuatlut — Is this something that needs to be looked into before this can be merged? |
|
I did a diff between this PR and the one @alexxy has been using and there aren't any significant changes. |
|
I've got to take my recently-fixed-not-fixed car into the shop to find out what the previous shop did wrong. I'll be back in an hour or so. |
Add support for Trinamic
TMC2660. Basically this means the Panucatt BSD2660 drivers.Not every feature is written yet but I'd like to get the basic support going for a broader audience.
The drivers do not have an EN pin so the function is implemented in software through SPI, very similar to how TMC26x is not at the moment. The TMC2660 is based on 26x after all.
This functionality can/will be expanded to other drivers as well and all (newer) TMC drivers will be supported. This will also allow for manufacturers and board designers to completely leave out the EN lines on MCUs that may not have many pins available.
Touch up on some of the issues from #11943
M122 S[1, 0]now requires bothMONITOR_DRIVER_STATUSandTMC_DEBUG.Here's a general plan for the rest of the year.
Ticked boxes mark the changes introduced in this PR and the ones that have already been merged in.
M122with fetching raw register dataSOFTWARE_ENABLEfor all smart drivers (Request from Panucatt)