-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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] Reboot on USB/Serial Connect and EEPROM Errors #26030
Comments
there are only white space change here... this doesn't make any sense. C doesn't care about white spaces |
@Artemonim provided configuration files are the stock BOARD_RAMPS_14_EFB configuration files |
0_o UPD: Or I don't know what you're talking about |
this one has MOTHERBOARD BOARD_BTT_SKR_MINI_E3_V3_0 which matches the board you listed in the issue. |
Yeah, maybe I accidently switch to the main branch when I zip the files :) |
All of my printers/boards are now bootlooping once any kind of serial connection is made (TFT or USB), so I'll mark this as confirmed. We're also discussing bootloops in #25852 since this issue has come and gone a couple times this month through various code cleanups. This issue may get closed in favor of that one (or both will get solved today and we can close them all together!) |
♻️ String helper class (#24390) is the offending commit causing boards to reboot on serial connect. |
i saw this commit and thought: wt*. if i understand all this correctly every lcd display class using serial connections will have to be adjusted. am i right? |
I confirm that the printer reboot on USB. And not only, reboot also when trying to print via the SD card. This bug appeared since this commit 574dd34 |
I am getting similar symptoms compiling for SKR V3 EZ. Let me know if there's anything I can help with. Would temp fix be to revert to before #24390 ? I can extra confirm that this is an issue, reverting the commit and resolving conflicts favoring older seems to completely fix the USB pairing issue. here's my configs for reference: |
574dd34 is also cause of EEPROM datasize error In settings.cpp TERN(FLASH_EEPROM_EMULATION, EEPROM_SKIP, EEPROM_WRITE)(&ver); writes 8 bytes when only 4 are expected According to mstring.h // Use &mystring as shorthand for mystring.str
char* operator&() { return str; } &ver should return the str, but it looks like it returns some structure information before it also. (tested on the simulator) if you modify mstring.h so that str in public vs protected and use MString<3> ver(F("ERR")); It works as expected... but as for why? I cannot see |
@thisiskeithb @thinkyhead Shouldn't we go rollback with this commit, put it back in PR and do tests on various configurations. Adding more commits to an unstable base will make it more and more complex. It also seems to me that PRs "at risk" should be tested longer. These are only suggestions. |
Bootlooping was fixed in #26037, but now temperatures are no longer reported over serial & serial devices like BTT's TFT can no longer connect. |
Much appreciated. The string refactor has been sitting in the PR queue for many months, but unfortunately we don't have a group of testers standing by other than myself who will pull down PRs and test them. I can put out the word to the Testers role on Discord that something needs testing, but that has not really proven to be effective. TBH I often don't do the most thorough job of testing due to my general workload. So it is often necessary to merge a PR before it will actually get tested enough to catch all of its issues. The |
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. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
After merge commit 46b5753 my Ender 3 started rebooting when trying to connect to a computer via USB. I couldn't find in which pull request this commit was accepted, but it is visible in Git
Bug Timeline
new
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
🎨 Indent temp structs
with SHA 46b5753Version of Marlin Firmware
2.1.x
Printer model
Ender-3
Electronics
BTT SKR MINI E3 V3.0
Add-ons
No response
Bed Leveling
No Bed Leveling
Your Slicer
None
Host Software
Repetier Host
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Configuration.zip
The text was updated successfully, but these errors were encountered: