Skip to content

[2.0.x] More complete Trinamic driver options#10102

Merged
thinkyhead merged 4 commits intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_eeprom_M913
Mar 21, 2018
Merged

[2.0.x] More complete Trinamic driver options#10102
thinkyhead merged 4 commits intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_eeprom_M913

Conversation

@thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Mar 14, 2018

Addressing #10087

  • Add EEPROM Init, Load, Save, Report for M913 Hybrid Threshold.
  • Bump EEPROM to V53.
  • Reorder TMC_AxisEnum to match EEPROM storage.
  • Reduce PROGMEM string usage with small functions.
  • Add T parameter to M906/M913 to specific which extruder.
  • Add I (index) parameter to M906/M913/M914 to specify which dual axis stepper.

Concise Diff
Counterpart to #10101

@thinkyhead thinkyhead force-pushed the bf2_eeprom_M913 branch 7 times, most recently from 6ba39d3 to e0a9160 Compare March 14, 2018 12:57
@thinkyhead thinkyhead requested a review from teemuatlut March 14, 2018 13:46
@thinkyhead thinkyhead force-pushed the bf2_eeprom_M913 branch 4 times, most recently from 082628d to 4faeabf Compare March 15, 2018 03:46
@thinkyhead thinkyhead changed the title [2.0.x] Add M913 Hybrid Threshold to EEPROM [2.0.x] More complete Trinamic driver options Mar 15, 2018
Copy link
Member

@teemuatlut teemuatlut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the M503 output needs a few changes. There are other places too where we need to account for dual steppers and report both.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose for declaring extruder if it is not used within the scope?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E_AXIS_N uses it when DISTINCT_E_FACTORS is enabled.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both X and X2 can be TMC drivers and so should output both.
It might also look cleaner if the output was

M906 X800 Y800
M906 I2 X800 Y800

vs

M906 X800
M906 I2 X800
M906 Y800
M906 I2 Y800

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. I thought I had changed them to all be independent, without #elif. I'll fix that.

@thinkyhead thinkyhead merged commit 8dfaf15 into MarlinFirmware:bugfix-2.0.x Mar 21, 2018
@thinkyhead thinkyhead deleted the bf2_eeprom_M913 branch March 21, 2018 04:14
thinkyhead added a commit that referenced this pull request Mar 23, 2018
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.

2 participants