Marlin icon indicating copy to clipboard operation
Marlin copied to clipboard

[BUG] TMC2209 not working anymore after version upgrade

Open igna09 opened this issue 2 years ago • 6 comments

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

I used my printer with Marlin 2.0.5.3 and TMC2209 (X, Y, Z, E) without any issues Today i decided to upgrade to bugfix 2.1.x porting old configurations I noticed that homing (sensorless) was not working anymore I executed M122 I S0 and noticed two strange behaviours:

  • despite S0 flag it continue to output values instead of stopping
  • current values was wrong I tryed with M502 to restore configurations from configuration.h and configuration_adv.h but nothing changed

So I decided to downgrade to 2.0.5.3 and everything is working again

There is some breaking change (about trinamic) upgrading from 2.0.5.3 that I'm missing or is this a bug?

Bug Timeline

No response

Expected behavior

it should load trinamic settings (#if HAS_TRINAMIC_CONFIG) from configuration files

Actual behavior

it load default trinamic settings

Steps to Reproduce

No response

Version of Marlin Firmware

bugfix 2.1.x

Printer model

No response

Electronics

No response

LCD/Controller

No response

Other add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • [X] A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Configuration_2_0_5_3.zip Configuration_bugfix2_1_x.zip

igna09 avatar Jan 23 '24 17:01 igna09

I also checked that connection is working, in both versions i can read registers correctly

igna09 avatar Jan 23 '24 21:01 igna09

Could you be more precise about what's not working? Also, try a minimal configuration from a fresh configuration file (just enough to run homing) and see if homing works. Enable DEBUG_LEVELING_FEATURE, then M111 S247 and then run G28 to see if you can spot anything obviously wrong ^_^

sargonphin avatar Jan 24 '24 15:01 sargonphin

Same for me. It was working in 2.0.5.3 then I moved to 2.1 and it's not triggering, even if I set the sensitivity to max. I went through old versions and it seems it doesn't work from 2.0.8 Not sure if what is supposed to be set for that has changed or not.

phazei avatar Jan 26 '24 23:01 phazei

My build, STRING_DISTRIBUTION_DATE "2024-01-24" of SHORT_BUILD_VERSION "bugfix-2.1.x" using sensorless homing for both X and Y on TMC2209 drivers.

I have no issues.

Send: M122
Recv: 		X	Y	Z	E
Recv: Address		0	0	0	0
Recv: Enabled		false	false	false	false
Recv: Set current	800	1300	1100	800
Recv: RMS current	795	1270	1049	795
Recv: MAX current	1121	1791	1479	1121
Recv: Run current	25/31	22/31	18/31	25/31
Recv: Hold current	12/31	11/31	9/31	12/31
Recv: CS actual	12/31	11/31	9/31	12/31
Recv: PWM scale
Recv: vsense		1=.18	0=.325	0=.325	1=.18
Recv: stealthChop	true	true	true	true
Recv: msteps		64	64	64	16
Recv: interp		true	true	true	true
Recv: tstep		max	max	max	max
Recv: PWM thresh.
Recv: [mm/s]
Recv: OT prewarn	false	false	false	false
Recv: triggered
Recv:  OTP		false	false	false	false
Recv: pwm scale sum	16	17	15	16
Recv: pwm scale auto	2	4	4	2
Recv: pwm offset auto	36	36	36	36
Recv: pwm grad auto	14	14	14	14
Recv: off time	4	4	4	4
Recv: blank time	24	24	24	24
Recv: hysteresis
Recv:  -end		2	2	2	2
Recv:  -start		1	1	1	1
Recv: Stallguard thrs	66	80	0	0
Recv: uStep count	10	54	2	8
Recv: DRVSTATUS	X	Y	Z	E
Recv: sg_result	0	0	0	0
Recv: stst
Recv: olb
Recv: ola
Recv: s2gb
Recv: s2ga
Recv: otpw
Recv: ot
Recv: 157C
Recv: 150C
Recv: 143C
Recv: 120C
Recv: s2vsa
Recv: s2vsb
Recv: Driver registers:
Recv: 		X	0xC0:0C:00:00
Recv: 		Y	0xC0:0B:00:00
Recv: 		Z	0xC0:09:00:00
Recv: 		E	0xC0:0C:00:00
Recv: 
Recv: 
Recv: Testing X connection... OK
Recv: Testing Y connection... OK
Recv: Testing Z connection... OK
Recv: Testing E connection... OK

Configuration.zip Configuration_adv.zip

Tannoo avatar Jan 27 '24 18:01 Tannoo

It took a lot of testing, but I did finally get mine working. SKR1.4, TMC2209, BL Touch, CoreXY, Marlin 2.1.2.1: Configuration.zip

I particularly had issues with stealthChop and hybrid_threshold. Depending on what they were set at, the sensorless homing didn't work at all. I had to disable them entirely, or lower my microsteps from 256 to 64. Hopefully these files might help you.

phazei avatar Jan 28 '24 01:01 phazei

Greetings from the Marlin AutoBot! This issue has had no activity for the last 90 days. Do you still see this issue with the latest bugfix-2.1.x code? Please add a reply within 14 days or this issue will be automatically closed. To keep a confirmed issue open we can also add a "Bug: Confirmed" tag.

Disclaimer: This is an open community project with lots of activity and limited resources. The main project contributors will do a bug sweep ahead of the next release, but any skilled member of the community may jump in at any time to fix this issue. That can take a while depending on our busy lives so please be patient, and take advantage of other resources such as the MarlinFirmware Discord to help solve the issue.

github-actions[bot] avatar Apr 27 '24 01:04 github-actions[bot]

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.

github-actions[bot] avatar Jul 11 '24 01:07 github-actions[bot]