TMCStepper
TMCStepper copied to clipboard
Marlin 2.0 + STM32duino + RUMBA32 + TMC5160 diag1 no output?
Hi, I cannot get sensorless homing to work with above setup. At present normal movement commands work fine (but ignore endstops) Homing causes any axis to move slightly around its current location and stop, or not move at all
I have the diag1 on the TMC5161 hooked to S pin of min endstops, i don't have a scope, just a DMM, but it always reads around 2.4ish volts
drivers are controlled via SPI
I have pullups enabled, but no external pullup (though i tried, and made no difference)
I have tried testing with load, and no load, and both with whole range of sg thresholds, nothing work
SENDING:M122
X Y Z
Enabled false false false
Set current 1000 1000 1000
RMS current 990 990 990
MAX current 1396 1396 1396
Run current 19/31 19/31 19/31
Hold current 9/31 9/31 9/31
Global scaler 133/256 133/256 133/256
CS actual 9/31 9/31 9/31
PWM scale 18 65555 18
vsense
stealthChop true true false
msteps 16 16 16
tstep max max max
pwm
threshold
[mm/s]
OT prewarn false false false
OT prewarn has
been triggered false false false
off time 4 4 4
blank time 24 24 24
hysteresis
-end 2 2 2
-start 1 1 1
Stallguard thrs 8 8 8
DRVSTATUS X Y Z
stallguard
sg_result 39 38 35
fsactive
stst * * *
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:09:40:27
Y 0x80:09:40:26
Z 0x80:09:00:23
Testing X connection... OK
Testing Y connection... OK
Testing Z connection... OK
M119 are all open
It seems like diag1 isn't sending a signal properly?
I cannot run your example test sketch because it wont compile on stm32 and I don't know how to alter it to work :(