teemuatlut / TMC2130Stepper

Arduino library for Trinamic TMC2130 Stepper driver
MIT License
159 stars 50 forks source link

TMC2130 only reading 0xFF:FF:FF:FF on all drivers #48

Closed Flawl3ssSWE closed 6 years ago

Flawl3ssSWE commented 6 years ago

Uploaded my firmware today and tried moving an axis using G1 X10 it and nothing happened, so sent M122 and it sent back SENDING:M122 X Y Z E0 Enabled true false false false Set current 800 800 800 800 RMS current 795 795 795 795 MAX current 1121 1121 1121 1121 Run current 25/31 25/31 25/31 25/31 Hold current 12/31 12/31 12/31 12/31 CS actual 31/31 31/31 31/31 31/31 PWM scale 255 255 255 255 vsense 1=.18 1=.18 1=.18 1=.18 stealthChop true true true true msteps 0 0 0 0 tstep 4294967295 4294967295 4294967295 4294967295 pwm threshold 0 0 0 0 [mm/s] - - - - OT prewarn true true true true OT prewarn has been triggered false false false false off time 15 15 15 15 blank time 54 54 54 54 hysteresis -end 12 12 12 12 -start 8 8 8 8 Stallguard thrs 8 8 0 0 DRVSTATUS X Y Z E0 stallguard X X X X sg_result 1023 1023 1023 1023 fsactive X X X X stst X X X X olb X X X X ola X X X X s2gb X X X X s2ga X X X X otpw X X X X ot X X X X Driver registers: X = 0xFF:FF:FF:FF Y = 0xFF:FF:FF:FF Z = 0xFF:FF:FF:FF E0 = 0xFF:FF:FF:FF

Here are my Config files (conf.h conf_adv.h):

Conf files.zip

I put everything together using: MKS_Gen-L_TMC2130_SPI_Sensor-less_Homing_Wiring_Diagram.pdf

What should I do now to get it all working?

Flawl3ssSWE commented 6 years ago

f646fd0d312233163cb7e98e3d1adf5c here is the pronterface response since it put it togheter to one text.

teemuatlut commented 6 years ago

Hardware error. Check your wiring and grimps. Change wires. Try to get one driver working first. Try software SPI if other methods fail.

Flawl3ssSWE commented 6 years ago

Why is not my e1 extruder working? It is reading E1 = 0xE0:0C:00:00 17848b3493c0ef9313c3d671fd1a041d

Flawl3ssSWE commented 6 years ago

Got it working

workheart commented 6 years ago

could you tell how? problems in the wireing?

Flawl3ssSWE commented 6 years ago

I have fixed it, it is working now.

dmitrif commented 5 years ago

What was the issue?

Flawl3ssSWE commented 5 years ago

@dmitrif I just redid all of the wiring and it started working as it should.

dmitrif commented 5 years ago

For me the issue was that I got clones, which are wired to operate in standalone mode. So had to desolder the standalone bridge, and solder the config pins.

Cheers!