Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Printer freezes during print, heaters ON (SKR 1.3 - TMC2209 in UART -BlTouch Smart clone) #15337

Closed
asko58 opened this issue Sep 22, 2019 · 37 comments

Comments

@asko58
Copy link

asko58 commented Sep 22, 2019

Ever since I updated to Marlin 2 and the board SKR 1.3 the printer randomly freezes during some prints. Here are the key facts:

Machine:

  • SKR 1.3 using TMC2209 in UART mode
  • Marlin 2, tried lots of versions, latest one as of 9/9/2019

Issue:

  • random freezes that can not be reproduced:
    -> possibly no freeze printing same gcode, freezing at different points during print, no freezes for a number of prints then again many freezes
  • when freezing the print head stops moving
  • motors, heaters and fans however stay ON!! which is a POSSIBLE FIRE HAZARD
  • the drivers and motors are not overheated as they are only slightly warm to the touch
  • Marlin stays responsive, the LCD Menu can be used

As Marlin does not notice that it has stopped, I think this could be a severy firmware issue. Can anyone confirm this or suggest a solution?

asko

Edit: For the first time I could just reproduce it within the same gcode. It happened at a height of 4.25mm. I don't see anything particular in the code, but I attached the file. Strangely, the LCD showed "Media inserted", which I definitely did not do.

TT_Tensioner v1.zip
config.zip

@asko58
Copy link
Author

asko58 commented Sep 22, 2019

Ok, things are getting even stranger: I rebooted the printer and re-ran the print to see if it would crash another time at the same point. No my LCD display has got stuck showing the same values since 0.2mm height and the whole machine is no longer responsive to key presses. But it is still PRINTING! ?! I will leave it to its work and watch...

EDIT: I am going nuts, the display just jumped to 5mm height and Marlin is responsive again. And it has skipped the problem part, print finished with no crash.

@Rdog618
Copy link

Rdog618 commented Sep 23, 2019

I'm having the exact same issue, its absolutely maddening. I have noticed that I cannot run stealth chop on E0 or I will get continuous under extrusion. Turning off stealth chop on any other axis induces emf that you can audiably hear ringing from the steppers, the emf regularly causes the motherboard to freeze so I'm pretty obligated to run stealth chop on x y and z.

@asko58
Copy link
Author

asko58 commented Sep 23, 2019

I have noticed that I cannot run stealth chop on E0 or I will get continuous under extrusion.

Stealth chop does not work in combination with linear advance. I have already turned it off, except for the z axis.

Turning off stealth chop on any other axis induces emf that you can audiably hear ringing from the steppers, the emf regularly causes the motherboard to freeze so I'm pretty obligated to run stealth chop on x y and z.

I don't have these problems. It rather seems the other way round as stealth chop makes noise with my printer.

@asko58
Copy link
Author

asko58 commented Sep 23, 2019

UPDATE: It seems to have gotten worse. Tried a different SD-Card and gcode. The printer stopped at 2.1mm height at the first attempt: no more printing moves but heaters ON! This time the LCD showed "Printing..."
gcode.zip

UPDATE 2: Re-ran print, same SD card, same gcode. Printed with no errors. I don't know what could be the cause...

@asko58 asko58 changed the title [BUG] Printer freezes randomly during print [BUG] Printer freezes during print, heaters ON Sep 23, 2019
@lovethat777
Copy link

Can you give us more information about your setup ? (heater type, power supply, ...)

@salacpavel
Copy link

salacpavel commented Sep 25, 2019

I am observing same issue with latest builds (maybe a week old) - SKR E3 mini/DIP + TMC2209 drivers in UART.
Sometimes, printer its just UI that becomes unresponsive, but the printer keeps going and after several seconds (10+) the display starts responding again. Sometimes it jut stalls untill I power cycle it.
Also storing / reading EPROM contents now hangs the printer completely.

@asko58
Copy link
Author

asko58 commented Sep 25, 2019

Thanks fo the responses. My setup is the following:

24v 8.5A Power supply
230V heated bed, controlled via pulse width modulated solid state relais
40w 24v heater cartridge embedded in 20x20 heat block
Tevo Nema 17 steppers (no specific type given) @ around 720-780mA rms
SKR 1.3 Board
TMC 2209 stepper drivers connected over UART
BlTouch Smart clone

@Haxk20
Copy link
Contributor

Haxk20 commented Sep 27, 2019

Exact same issue for me too on SKR 1.3. At first i tought that maybe i connected something wrong or something but TBH im glad im not alone that has this issue. But this sure has to get fixed as it makes the printer basically unusable at bigger prints.

@Haxk20
Copy link
Contributor

Haxk20 commented Sep 27, 2019

Setup. Stock Tevo Tarantula PRO with SKR 1.3 and TMC2208 in UART mode.

@boelle
Copy link
Contributor

boelle commented Oct 12, 2019

@asko58 still having issues?

@Haxk20
Copy link
Contributor

Haxk20 commented Oct 12, 2019

@asko58 still having issues?

I will try a file that i know freezes my printer tomorrow and will tell you if its still broken on latest marlin.

@boelle
Copy link
Contributor

boelle commented Oct 12, 2019

remember to rule of a bad sd card etc

@Haxk20
Copy link
Contributor

Haxk20 commented Oct 12, 2019

remember to rule of a bad sd card etc

Not a bad SDcard as this happens with USB connection too with SD card out. The main issue here im concerned is the printer stopping for some reason which you can imagine isnt fun on big print.

@Haxk20
Copy link
Contributor

Haxk20 commented Oct 13, 2019

@boelle Not exactly 100% sure but print just finished without printer freezing. This was 1 Gcode i coudlnt get to print to 100% and i tried like 7 times. So when more people confirm that they dont experience it anymore i guess then its safe to assume its fixed.

@boelle
Copy link
Contributor

boelle commented Oct 13, 2019

odd, and you did not change anything?

@Haxk20
Copy link
Contributor

Haxk20 commented Oct 13, 2019

Only updated marlin @boelle

@Haxk20
Copy link
Contributor

Haxk20 commented Oct 13, 2019

But during the first few minutes the screen was OK but then it made all pixels totally black and never came back. I was unable to control the printer but it was still printing

@boelle boelle changed the title [BUG] Printer freezes during print, heaters ON [BUG] Printer freezes during print, heaters ON (SKR 1.3 - TMC2209 in UART -BlTouch Smart clone) Oct 24, 2019
@boelle
Copy link
Contributor

boelle commented Oct 30, 2019

@asko58 @Haxk20

have you tested recently? a lot happens in just 2-3 days

@Haxk20
Copy link
Contributor

Haxk20 commented Oct 31, 2019 via email

@vivian-ng
Copy link
Contributor

I have the same symptoms (print freezes but heating of bed and nozzle still continues; print resumes after about a minute or so) on an ESP32 running TMC2130 via I2S stepper stream. I think @felixstorm also faced similar issues. Not sure if our issues are related to this; if so, then the common denominator is 32-bit + TMC driver.

@boelle
Copy link
Contributor

boelle commented Nov 3, 2019

will close this one as it seems @asko58 do not have issues and @Haxk20 can print fine

we can reopen if several can confirm the issue (and maybe even say what is wrong)

@boelle boelle closed this as completed Nov 3, 2019
@felixstorm
Copy link
Contributor

@vivian-ng I do indeed have TMC modules on my ESP32 PCB, but run them standalone without TMC support inside Marlin, so I do not think that our problem is actually related to this.

@Haxk20
Copy link
Contributor

Haxk20 commented Mar 12, 2020

@boelle I would like to request you reopen this. IDK what caused this but i just literally changed filament to PETG and put the bed to 85C and 245C at hotend. It printed fine for over an hour then it did this again.
First thing that came to mind is if PSU max current isnt the issue but that would reboot the entire printer and not cause SD card to be unplugged virtually.

@thinkyhead
Copy link
Member

@Haxk20 — Start a new issue and be sure to fill out the template. We want to start with a fresh new page.

@marhub
Copy link

marhub commented Mar 25, 2020

Have the same issue - printer prints but UI freezes until I power cycle it.
It usually happens when I pause and unpause print.
Stock Anet A6.
On stock firmware was all ok.

@Haxk20
Copy link
Contributor

Haxk20 commented Mar 25, 2020

@marhub You have different issue then. Here it is that UI is fine but printer on its own freezes.

@OZZYcorexy
Copy link

OZZYcorexy commented Apr 3, 2020

Hello there,
can confirm the issue described by Haxk20 is present in 2.0 bugfix
example code was printed well once then i wanted to print it again and it stopped in about middle (4,5hrs ) print. removed residue from plate and started again and faced same issue on different height, different place. was able to click over the screen but printer was not reacting at all.
my setup: custom CoreXY, SKR PRO 1.1, TFT24, 230v bed heater on SSR relay, 50W hotend heater. 24V about 400W main power. TMC2209 on X,Y,Z,Z2 in uart mode, DRV8825 on extruder.
to force printer move again have to power cycle.
print from usb drive (3rd one tried +2 SD cards) all was facing issue with this o that print randomly

@OZZYcorexy
Copy link

small update on it guys, recently printing only via octoprint and see no issues.
when issue was captured i was printing usually from SD or USB on BIQU TFT 24 screen
my conclusion is that one fails rather than motherboard or Marlin itself

@Haxk20
Copy link
Contributor

Haxk20 commented Apr 11, 2020

small update on it guys, recently printing only via octoprint and see no issues.
when issue was captured i was printing usually from SD or USB on BIQU TFT 24 screen
my conclusion is that one fails rather than motherboard or Marlin itself

At the moment it seems to be voltage drop in PSU that the SKR just cant handle and drops for a split of a second and as a result it drops SDcard which in turn stops print. I have started using octoPrint as well and see no issue with it. No freezes. Done 64 hour print. No freeze. So i think thats a pretty decent test.

@marhub
Copy link

marhub commented Apr 13, 2020

@marhub You have different issue then. Here it is that UI is fine but printer on its own freezes.

oh, ok- my bad.
Any existing issue then ? So i don't create duplicate :)

@kain0m
Copy link

kain0m commented May 30, 2020

I had this issue. Tried several different versions of Marlin, symptoms were always slightly different. Freeze at random points, heaters on, LCD stuck, with Version 2.0.5.3 the printer rebooted. Connection via USB not possible if the printer freezes (USB device not recognized).

Homebuilt Cartesian printer
SKR 1.3
TMC 2208 in UART (Dual Z), stealthchop, Square wave stepping enabled
Linear advance made no difference
BLTouch (freezes also without BLTouch)
Chinese clone RepRap Discount Smart controller
150W 12V PSU

Anyway, since switching SD Card (the SD in the Display, where I store the GCode), I no longer experience the freezing issue (normally, it would freeze every 3-4 hours of printing on average. No freeze for 30+ printing hours since switching SD card). Had been chasing this for half a year now...

@minosg
Copy link

minosg commented Jun 2, 2020

From a similar thread investigating the same issue on another project.

Klipper3d/klipper#196

This correspondence with TMC is being attached which explains the lock-up issue

I think, the reason for disabling of the TMC2208 driver could be

a hard stop of the motor in stealthChop (Step frequency goes from a higher value, e.g. > 0.5 RPS to 0)

an abrupt change of motor velocity (Step frequency goes from a higher value to a low value within a single step).

When using stealthChop, please always make sure, that you use velocity ramping. A hard stop will cut away motor back-EMF at once. As stealthChop is a voltage based chopper, it cannot respond to this at once, like spreadCycle. The result is an overcurrent, and the motor driver goes to overcurrent switch off, until it becomes disabled / enabled again.

To resolve the problem, please use at least a tiny velocity ramping, when hard stopping the motor, e.g. within a few / a few ten microsteps.

To my understanding this issue could be addressed by:

  • velocity ramping. ( Not certain how Linear advance will respect that )
  • Setting the hybrid threshold to a value, that when the extrude changes direction suddenly it falls to spread cycle.
  • Playing with the MINIMUM_STEPPER_POST_DIR_DELAY/MINIMUM_STEPPER_PRE_DIR_DELAY and overriding the driver default of 20nS

Does marlin have a velocity ramping configuration parameter?

@OZZYcorexy
Copy link

OZZYcorexy commented Jun 3, 2020 via email

@minosg
Copy link

minosg commented Jun 3, 2020

Apologies, I kinda responded to the wrong ticket. But that driver design feature is still relevant in that case.

Marlin will freeze with heaters on whenever the flow blocks and waits for an external component to return something, Weather that is the LCD screen in auto-levelling, or the TMC drivers. As a result you can have different causes display the same effect.

From my experience Linear advance trigger's the driver lockup way more often than anything else. but one other reason you could be experiencing it, is the condition of the SD card. is SD_CHECK_AND_RETRY enabled?

@OZZYcorexy
Copy link

OZZYcorexy commented Jun 3, 2020 via email

@mpalpha
Copy link

mpalpha commented Jun 10, 2020

I have a printer with an mks robin nano v1.2 and all 5 TMC2209's running UART. I believe this issue may be related to mine.

I get random marlin lockups/freeze during prints with octoprint requiring powering down to reset if I have linear advance set to anything but 0.

I have successfully printed with octoprint the same 22hr gcode file with linear advance set to 0.

@github-actions
Copy link

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 github-actions bot locked and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests