-
-
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] PID Autotune in combination with hybrid USB causes lockup #19187
Comments
Going through old binaries I compiled (at that date). I always do a Looks like this has been going on for a while, but it's difficult for me to accept this issue has been ongoing for so long without anybody noticing... It's also strange to me that this only happens with the PID autotune, other functions seem to work perfectly fine. Marlin-bugfix-2.0.x-2020-07-28 Same problem Marlin 2.0.5.3 2020-03-31 Same problem Looking through merged commits relating to PID autotune now, there can't be that many. |
Changed |
So it does look like the hybrid interface has some interaction here, though it could be that the driver on the PC itself is involved? For now, with 2.0.6.1, this is the state; STM32F103RC_btt No Problem Changing issue title. |
Have you tried |
I have now, and that fails as well. That also means that this fails with Update: Driver update didn't change the situation. |
Is anybody with similar hardware able to confirm this one? SKR Mini E3 V1.0 / 1.1 / 1.2 should do. Perhaps even 2.0. |
I tried running a PID autotune from OctoPrint with an SKR Mini E3 V2.0 running the latest
|
I see the same, rather my board (V1.2) will end up going into short beeps followed by a long beep - which I believe is thermal protection? I also notice the LCD become static and unresponsive to button inputs, can you confirm? (if you still have a screen attached) |
This issue has had no activity in the last 30 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 7 days. |
I has the error also on an skr mini v1.1. I use repeiter-serever if i send to the motherboard - M303 E-1 S70 C8 from repeiter's console. I can see in console:
|
@userosos @thisiskeithb I'm told recent bugfix has some serial fixes, I'm not in a position to try this at the moment - but you might. |
For people reporting on this issue, please make sure you're running at least |
The recent fixes for serial hangs impact any STM32F1 board which uses a hardware serial port for anything. For many board this includes the built-in USB Serial. It also includes serial connected displays and TMC stepper drivers. |
I updated the firmware to 2.0.7 and if i use M303 E-1 S80 C10 - i has no disconnect and it work OK. |
I have verified with 2.0.7 on my STM32F103RC_btt_512K_USB environment and it still locks up the LCD with no reaction to the encoder button and no LCD updates. Serial communication also locks up. |
I'm not getting LCD lockups, but using the |
This fixed the serial disconnects I was seeing on an SKR Mini E3 V2.0 compiled with the |
Eureka! I have compiled and tested 2.0.7.2 at 8e1ea6a and have found that PID autotune when called over serial now fully completes. Serial connection remains active, LCD (which is serially connected) no longer locks up. @userosos can confirm? I am locking this issue as fixed, thanks @rhapsodyv |
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. |
Update
See #19187 (comment) for new insights
For now, it seems the lockups with the PID autotune are related to the use of the Hybrid USB mode.
Bug Description
Using Marlin 2.0.6.1, initiating PID autotune over a serial connection will lock up the control board until said serial connection is interrupted (USB cable removed), resulting in thermal protection (constant beeping)
Considering the only commit after 2.0.6.1 at the moment is a date change, this can be considered current bugfix.
My Configurations
2.0.6.1.sw.zip
STM32F103RC_btt_512K_USB
Steps to Reproduce
If the USB cable is left attached (serial connection left active), the printer will eventually go into thermal protection.
Additional Information
LCD interface will eventually lock up as well, regardless of serial connectivity. Will stop responding to button input and stop updating temperature values.
Nothing is fed back trough the serial connection;
And nothing follows.
Confirmed to also happen on 2.0.6.0 by user Skorpi on Discord.
Possibly related
#19148
#19186
The text was updated successfully, but these errors were encountered: