Welcome! Log In Create A New Profile

Advanced

TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH

Posted by dlamet 
TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 15, 2022 08:42PM
Hello:

I'm trying to get my shiny new TMC2130 drivers configured with SPI on my RAMPS 1.4 controller. I'm installing Marlin 2 for the first time with VS code and Platform.io. I've gone through the configuration with single Z-axis. M122 yields this:

>>> M122
SENDING M122
X Z
Enabled false false
Set current 800 800
RMS current 795 795
MAX current 1121 1121
Run current 25/31 25/31
Hold current 12/31 12/31
CS actual 31/31 31/31
PWM scale 255 255
vsense 1=.18 1=.18
stealthChop true true
msteps 0 0
interp true true
tsteps 4294967295 4294967295
PWM thresh.
[mm/s]
OT prewarn true true
triggered
OTP false false
off time 15 15
blank time 54 54
hyteresis
-end 12 12
-start 8 8
Stallguard thrs 0 0
uStep count 65535 65535
DRVSATUS X Z
sg_result 1023 1023
stallguard * *
fsactive * *
stst
olb * *
ola * *
s2gb * *
s2ga * *
otpw * *
ot * *
Driver registers:
X 0xFF:FF:FF:FF Bad response!
Z 0xFF:FF:FF:FF Bad response!
Testing X connection... Error: All HIGH
Testing Z connection... Error: All HIGH

I'm using the default configuration pins for RAMPS 1.4 (pins_RAMPS.h)

  #define X_CS_PIN                            53
  #define Z_CS_PIN                            40
    #define TMC_SW_MOSI                       66
    #define TMC_SW_MISO                       44
    #define TMC_SW_SCK                        64

Any help is appreciated.
Attachments:
open | download - TMC2130-SPI.jpg (208.3 KB)
open | download - Configuration.h (117.4 KB)
open | download - Configuration_adv.h (173.8 KB)
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 15, 2022 09:52PM
You need to add a wiring harness to enable this. Ramps was not deigned for smart stepper drivers, so you need to add wires.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 03:30AM
You can usually detect a SPI compatible board if it has the DIAG slots for the extra plugs of any SPI stepper driver. This would usually be an incompatible board:



And this would usually be a compatible board:



Spare yourself the trouble of buying an incompatible board! The wiring is a mess! Buy a compatible SPI stepper driver board to begin with, like the RAMPS 1.4.4 (DIY) or one of those great boards that come with everything on them.

I personally would look at boards from MKS Makerbase. They have a great product selection.

Edited 3 time(s). Last edit at 12/16/2022 03:37AM by The_GTA.


Martin Turski, company owner of EirDev

Support me in my duties! Improve the world through scientific accuracy and ingenuity.
Attachments:
open | download - skr_yes_diag.webp (6.7 KB)
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 04:04AM
You just need something like this


Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 04:26AM
@Dust if you forget to remove the jumpers underneath the driver modules - which are invisible in your picture above - then the signals will be overwritten to a constant HIGH because of the MS strong signal feeding! Once again, spare yourself the trouble, please.

Edited 1 time(s). Last edit at 12/16/2022 04:26AM by The_GTA.


Martin Turski, company owner of EirDev

Support me in my duties! Improve the world through scientific accuracy and ingenuity.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 05:36AM
@The_GTA

You are mistaken. .

Take a closer look at the MS pins on the stepper driver in the above example



The pins only face up! They are not connected to the ramps MS pins.
.

Edited 1 time(s). Last edit at 12/16/2022 05:40AM by Dust.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 06:05AM
@Dust: It just shows how complicated your proposed workaround is! I am not mistaken because the user is facing a problem and I just described what the reason for his "All HIGH" message may have meant! It just shows how complicated your proposal is and I don't think that pushing that onto DIY people is a good idea! It is like giving people obviously complicated situations just so they run into problems doing them. If you buy a board that is SPI compatible to begin with there is no funny wiring business. The process is well documented and tested. You cannot plug a wire into the wrong spot (unless you put the thing the wrong way round, in which case you have other serious problems of understanding). You get better cable management. You get better space for installing a cooling fan extension above your printer board. Think about it!

Edited 1 time(s). Last edit at 12/16/2022 06:05AM by The_GTA.


Martin Turski, company owner of EirDev

Support me in my duties! Improve the world through scientific accuracy and ingenuity.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 10:57AM
I do have a harness. A photo of my wiring is attached to the original post as TMC2130-SPI.jpg. I made the path of the wires as clear as possible.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 11:01AM
@The_GTA: Good suggestion about an SPI enabled board. I may give RAMPS a little more effort as I'm invested in it ATM, but a good option nonetheless. There are no jumpers installed for the drivers.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 16, 2022 06:50PM
Did you try this with 12v enabled?
As TMC stepper drivers need this (even to talk over uart or SPI)

And 12v needs to be turned on at the same time or before 5v, not after 5v is active.
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 17, 2022 04:44PM
@Dust: Thank you! That was key info. I also had to swap a TCM2130 with another channel. Looks like I may have damaged a board.

I now get clean communication, but I cannot get motor motion. I'm enabling with M17 and then G0 X5 Z5 F100. That did it with Marlin 1 & A4988s. Do I need to do something more with my new setup, or do I still have something awry?

Updated M122 S1:

X Z
Enabled false false
Set current 800 800
RMS current 795 795
MAX current 1121 1121
Run current 25/31 25/31
Hold current 12/31 12/31
CS actual 31/31 31/31
PWM scale 255 0
vsense 1=.18 1=.18
stealthChop true true
msteps 16 16
interp true true
tsteps max max
PWM thresh.
[mm/s]
OT prewarn false false
triggered
OTP false false
off time 3 3
blank time 24 24
hyteresis
-end -1 -1
-start 1 1
Stallguard thrs 0 0
uStep count 520 520
DRVSATUS X Z
sg_result 0 0
stallguard
fsactive
stst
olb
ola
s2gb
s2ga
otpw
ot
Driver registers:
X 0x80:0C:00:00
Z 0x80:0C:00:00
Testing X connection... OK
Testing Z connection... OK

X:0/12/-|l| Z:0/12/-|l|
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 17, 2022 08:02PM
disable #define SOFTWARE_DRIVER_ENABLE

These driver use an IO pin
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 18, 2022 03:46PM
I'm in business.

@Dust: As as followup, I assume that something in the M122 report tipped you off that my SOFTWARE_DRIVER_ENABLE was incorrectly configured. What was it?

Thanks, everyone!
Re: TMC2130 - Marlin 2.0.9.5 - RAMPS 1.4 - Error: All HIGH
December 18, 2022 06:02PM
@dlamet

Nope.

I've just seen those symptoms many times before and knew to check if that settings was enabled in the configs.
Sorry, only registered users may post in this forum.

Click here to login