-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] The print freezes on SKR mini 2.0 #20673
Comments
Here is the gcode file that I used |
my TFT loosing often the connection. thats a TFT FW problem at myself and printing with marlin-mode is working. by mine Marlin doesnt like now to controll the fans |
I don't have a problem with TFT and fans. I did next tests I used the default configuration from config\examples\Creality\Ender-3\BigTreeTech SKR Mini E3 2.0 + small modifications (TEMP_SENSOR, ENDSTOP_INVERTING, DEFAULT_AXIS_STEPS_PER_UNIT, FIX_MOUNTED_PROBE, CHOPPER_DEFAULT_12V)
I used the configuration shared in this case again
I think that the problem could be with USB serial. The print from PC crashed always. In SKR mini guide I found note: "Follow this comment if you are experiencing freezing mid print"
Do you have any idea how could I help confirm that the problem is in USB serial Note: when the print freezed, I was able (by Pronterface and TFT) control the print - pause, resume, move axis,.. but when I used resume, the print did not continue. Looks like it doesn't know what to print. |
I tried use this fix, but it did not help. It freezed again (print from Pronterface). |
Observed couple of times similar thing on my SKR mini MZ (which is same schematically as SKR mini E3 V2.0) with current bugfix-2.0.x branch build (FIRMWARE_NAME:Marlin bugfix-2.0.x (Jan 9 2021 18:56:47)).
|
Mine SKR Mini E3 V2 has the issue, that TFT Prints sometimes freezes and my ESP01 can read the values, but sent commands will not accepted and the TFT writes at top "Bitte warten ..." (Please wait ...). While printing with MarlinMode works, but not with TFT35 E3 V3. |
I found in BTT's SKR mini E3 / SKR mini MZ repositories few strange commits, that potentially can be related. e.g. bigtreetech/BIGTREETECH-SKR-MINI-MZ@96ffe0b#diff-fdfec4ae4090e7bbb634ba60b14b927fb1d2a4b22e5d58c33fbfa88336488861 -- so if it is somehow screwed with beeper/speaker and timers on SKR mini boards, that might explain. Reasons for suspecting is because I again noticed today "a pause until knob is clicked" situation, and checked logs.
|
@kad, for your MX board: The fans on the MX board seem to be on Timer8, so adding this line from the BTT commit would be worth trying:
You probably don't need the TONE_CHANNEL change, it should default to that value anyway. Be careful when applying this change to other boards. The Maple framework ignores TONE_TIMER if BEEPER_PIN is mapped to a pin with a timer defined. I checked the two pins I found in pins headers and they both did not have timers specified. |
Can you test again with the following changes:
Previous hangs were related to UART interrupts. These are used by your TFT display and TMC drivers, but NOT by USB on this board. By eliminating all use of UARTs during prints, we can eliminate that as a cause of the hang. By not requiring a TFT display to reproduce it is also for others to help test. |
Reminder: SKR mini MZ and SKR mini E3 2.0 schematically are equal. Just difference in physical layout. BTT's SKR mini E3 repository has similar commits. bigtreetech/BIGTREETECH-SKR-mini-E3@1fc9de3
Thing that we are observing might be related to changes of stm32 / mapple upgrade that was done after 2.0.7.2 release... but just my speculation. I'll probably try to rebuild with [email protected] and observe. |
Actually, that is one of the changes in maple: --- [email protected]/STM32F1/cores/maple/tone.cpp 2019-03-30 21:44:22.000000000 +0200
+++ framework-arduinoststm32-maple/STM32F1/cores/maple/tone.cpp 2020-11-29 14:25:42.000000000 +0200
@@ -31,7 +31,7 @@
#define TONE_TIMER 8
#endif
#ifndef TONE_CHANNEL
- #define TONE_CHANNEL 8
+ #define TONE_CHANNEL 4
#endif
HardwareTimer TTimer1(1), TTimer2(2), TTimer3(3), TTimer4(4),TTimer5(5), TTimer6(6), TTimer7(7), TTimer8(8); @sjasonsmith do you have knowledge of timer parts in HAL/stm32? this defaults changes in maple might explain why timers got screwed. |
STM32 timers never have more than 4 |
I am concerned that this thread is all about SPEAKER and TONE, even though the original reporter did not have SPEAKER enabled. Let’s try to focus on hangs that occur witH SPEAKER disabled. |
I have also speaker disabled, and soft pwm enabled. And still same scenario: print over USB, at some point printer stops responding with fans/heaters on. Biggest difference between my config and @pv501977 seems to be only in bltouch vs fixed mounted sensor. This means that in my setup Timer1 seems to be used for servo0. But then, according to your comment that it should be only 4 timers: |
I didn’t say there were 4 timers. I said that each timer never has more than 4 channels. edit: Oops, I did say 4 timers, but meant 4 channels ;) |
well, it was not so cleanly stated in previous reply: "STM32 timers never have more than 4 timers.". |
Oops, that was a typo on my part. I went back and edited my post to avoid confusing anyone else with it. |
On Saturday I upgraded TFT35 FW to the latest version (Master from 17.1.) I did 2 tests now
I printed from PC again and both prints finished correctly! I will use Marlin 2.0.8 again and I will do more tests. Should I try use older TFT35 FW and do tests with and without TFT35 display? |
I did next 2 tests. I used Marlin 2.0.8, how I wrote. I printed from PC - with and without connected TFT (I disconnected both cables from the TFT display). I can share the video from the SW.
|
in your software that you use on PC, is it possible to write serial log ? it would be interesting to see if some similarities with |
I'm using Pronterface, it supports serial log, but during print there are no added new commands. I will try install Octoprint. |
Well, if Proterface supports log - enable it please for your next trials, and let's check what is going on at the time when print freezes. BTW, in UI of Pronterface, do you see status of print when it freezes? is it "printing/" or any error message? |
I did long-term prints. I used Octoprint (on PC and RPI) - Pronterface does not support the correct serial log. Results:
The logs files from PC Octoprint : here Notes:
I think that this case is possible to close. Is it possible to add to Marlin next security check? Similar as 'Thermal Runaway, system stopped! Heater_ID: bed'
|
I am having the exact same issue. Mine started randomly after nearly two weeks of perfectly sucessful prints with the Ender 3 Pro, with MiniSKR V3 and TFT 35 touch screen. I just updated the firmware to the most recent available on Github today, and the problem persists. Sometimes it happens in the first hour, sometimes it happens at hour 23. Its totally random. I am not a programmer so please be gentle if I am asking basic questions here. Printing from Micro SD via USB card adapter. What's the recommended solution? I see several tickets open and closed over the last year, but nothing that seems to work for everyone. |
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. |
Bug Description
The printer randomly freezes during print the model xyzCalibration_cube. I made 3 prints, but they all failed.
Machine
Issue
I found similar troubles - #17161, #18117, #15337, all was closed.
Configuration Files
https://www.dropbox.com/s/u2vyld5gthd1c94/2021-01-04-Marlin-2.0.8.0-bugfix.zip?dl=0
https://www.dropbox.com/s/1p0kpcp1wfolba3/2021-01-03-Marlin-2.0.7.2.zip?dl=0
Steps to Reproduce
Expected behavior:
The model will be printed
Actual behavior:
Print starts and after some time freezes.
Additional Information
Images with printed model:
https://www.dropbox.com/s/pvzjfvkfqc69ly5/2021-01-03-Marlin-2.0.7.2-cube.jpg?dl=0
https://www.dropbox.com/s/rinwxa9gmiax7bs/2021-01-04-Marlin-2.0.8.0-bugfix-1.jpg?dl=0
https://www.dropbox.com/s/rinwxa9gmiax7bs/2021-01-04-Marlin-2.0.8.0-bugfix-1.jpg?dl=0
Video
https://www.dropbox.com/s/xd2kz8x1kwadidv/2021-01-04-Marlin-2.0.8.0-bugfix.mp4?dl=0
The text was updated successfully, but these errors were encountered: