Closed thisiskeithb closed 5 years ago
Maybe you could try M502 (EEPROM reset) and M500 (save current settings).
@Patag: As I said above:
I always run M502 and M500 after flashing since it's part of my post-flash script in OctoPrint, but just for good measure, I issued the commands manually and nothing changes.
We'll have to trace where TMC drivers are initialized at startup and see if any obvious errors jump out. I don't have a Trinamic setup at this time, but I may be able to run the code on a bare board and follow the bouncing bits.
This looks to be an issue with the latest TMC Stepper library (@teemuatlut). I specified v0.3.2 in platformio.ini and recompiled the 1dad6e7 commit and now I'm back in business:
Send: M122
X Y Z E
Enabled false false false false
Set current 635 950 530 890
RMS current 631 942 518 876
MAX current 890 1328 730 1235
Run current 31/31 31/31 31/31 31/31
Hold current 15/31 15/31 15/31 15/31
Global scaler 53/256 79/256 44/256 74/256
CS actual 15/31 15/31 15/31 15/31
PWM scale 0 0 27 0
stealthChop true true true false
msteps 16 16 16 16
tstep max max max max
pwm
threshold 49 49 39 31
[mm/s] 201.69 201.69 50.68 30.73
OT prewarn false false false false
OT prewarn has
been triggered false false false false
off time 4 4 4 4
blank time 24 24 24 24
hysteresis
-end 2 2 2 2
-start 1 1 1 1
Stallguard thrs 1 -2 0 0
DRVSTATUS X Y Z E
stallguard
sg_result 0 0 0 0
fsactive
stst X X X X
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:0F:40:00
Y 0x80:0F:40:00
Z 0x80:0F:40:00
E 0x80:0F:00:00
Testing X connection... OK
Testing Y connection... OK
Testing Z connection... OK
Testing E connection... OK
ok
@thisiskeithb how do you specify a particular version in platformio?
@jmdearras: Look for TMCStepper@<1.0.0
under the LPC1768 environment section and change it to TMCStepper=https://github.com/teemuatlut/TMCStepper/archive/v0.3.2.zip
I was able to confirm your issue going when from TMCStepper v0.3.2 to v0.3.3.
I tested which commit started breaking things for me, last working commit of the TMCStepper library is teemuatlut/TMCStepper@d33aba2
That doesn't make changes to the code. The problem is with SW SPI trying to follow MODE3 but it isn't quite there yet.
@teemuatlut: Reverting SW SPI MODE3 changes in v0.3.4 resolved my issues, thank you!
~I had to specify that particular version in platformio.ini (maybe due to some propagation with CDNs?), but hopefully PIO will start grabbing the latest copy for everyone soon.~
Edit: I had to close & restart Atom as well as clean the libraries a few times before v0.3.4 was pulled down.
Edit edit: Atom stinks. Use VSCode.
I know this is closed, but (since I probably don't understand it exactly), would this affect anyone anymore? I.e. can I just update my fork with latest Marlin bugfix-2.0.x/TMCStepper and re-apply my configs over it, or do I have to do something extra (e.g. remove any local, already downloaded TMCStepper library folder)? Thanks.
Rebase your fork and apply settings.
You can remove the .pioenvs
and .piolibdeps
folders for good measure if you're using PIO.
Then just make sure you're compiling the latest library version.
Thanks for the prompt answer!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
TMC driver settings are using values not set by me which causes the steppers to not move at all. Homing halts the printer since there is no axis movement.
Expected behavior: Use TMC values set in Marlin configs
Actual behavior: Using random values for TMC drivers like 256 microstepping and really high hybrid thresholds.
Additional Information
After porting my settings from the 7ccbcf2 commit to the 1dad6e7 commit from earlier today (both are attached below), my TMC5160 drivers no longer work as intended on a BigTreeTech SKR 1.3.
Running M122 after flashing the 1dad6e7 commit from today returns very odd values:
Running M122 on the 7ccbcf2 commit from 5/16/19 returns the correct values:
I always run M502 and M500 after flashing since it's part of my post-flash script in OctoPrint, but just for good measure, I issued the commands manually and nothing changes.
Config files: Ender-3 - SKR 1.3 - Marlin-bugfix-2.0.x - 1dad6e7 - 5.18-19.zip
Ender-3 - SKR 1.3 - Marlin-bugfix-2.0.x - 7ccbcf2 - 5-16-2019.zip