-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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] Marlin does not boot if TFT is in LCD Emulator Mode #1657
Comments
Try turning the knob after it boots. My screen is dark unless I turn the knob so it looks like it didn't boot. |
nope, thanks for the hint.. but also don't work or change anything on this issue.... |
I have tft35 e3 v2 26 feb firmware. Now I will install latest firmware 3 March. |
I also did a test with my stock ender 3 display. Everything is perfect. So I'm sure that it is 26 feb firmware related. |
That doesn't work my friend. It happens sometime when I switch to marlin mode from tft mode, but this is something really different as I explained my experience above. |
Try to start print with serial always on turned off. |
yeah this is realted to serial always on... as @oldman4U mentinoed ... runinto this issue also before...
@oldman4U i've doubled checked it just to be sure... serial always on is disabled on my side.. so the board not booting in marlin mode shouldn't b e an issue from this other issue.. |
I mentioned this somewhere else, but as far as I remember the problem with Marlin not starting has been there before and has been fixed app 2-3 months ago. So it would be important to find a working version and also which version broke it. Then we can ask the developer to fix it. Maybe I find some time tomorrow to check it. |
some other guys in the biqu b1 Facebook group use ah firmware from @looxonline ... thats from 3.12.2020 (compiled, so not sure what base branche clone he's using and if he's changed other things in his branches too...) but there it's still working |
Maybe you can ask him or try a firmware from this repo from beginning of December? |
OK, I just tested the startup issue with my TFT35 E3 v3 connected to an SKR E3 DIP Marlin Feb. 11th and it works fine. Sure there was no problem during the update of the firmware and have you uploaded firmware, config.ini and TFT folder using a 8GB or smaller, FAT32 formatted sd card? |
Hi @oldman4U , could you try with tft35 e3 v2 26 feb firmware? Switch to marlin mode and shut down your printer and re-open it. Before 26 Feb firmware there wasn't any problem. I haven't tried last two commits after 26 of Feb yet and will not be able to try for a week at least. |
Hi. I am just downloading the build from today 4.3.2021 and let you know asap. |
Could you also try 26 february firmware? I suppose that was guru's update. As I up to remember my serial always on was disabled as well. |
So I tested with the build from today with serial always on DEactivated and there was no problem to start in Marlin mode and also no problem to start a print using Marlin - it stayed at Marlin. Then I activated serial always on, went back to Marlin and restarted the printer - it worked. So far so good. Next I tried to print from on board sd card using Marlin and this is where the nightmare began. The TFT switched to the touchscreen where only the heaters got an update, everything else was frozen. The print started but when I tried to stop it it went to the parking position resume was not possible. I tried to press some other buttons and also the encoder and sometimes there was a kind of reaction but not really something I would call a normal operation. So I turned the printer off and when I turned it on again it booted in Marlin mode (even the printer was in touch mode when I turned it off) showing only the Marlin Mode Title. NO Marlin menu and also no way to go back to the Touchscreen using the encoder because it does not show the selection. The only way out of this is to reinstall the firmware. The good thing is, that this is exactly the behaviour we saw a few months ago and I am 99.999% sure that we fixed it. |
You may also just copy your config.ini and boot your printer. If the default mode is tft mode, printer switches to tft mode and boots successfully. No need to flash the firmware. |
I also had printer killed halted issues while printing from tft sd. I don't know if it is related with the tft. I may try with my ender3 stock display with the same gcode. But a week later at least. @guruathwal hello. Could you have a look to this ticket? |
I haven't tested it but look here Jan. 4th: #1433 Hey it is me, your olddatabase;-) |
whats gooing on here... :) strange with this serial_alwayson "bug"... i even did the reset.txt on each flash to newer version to just rule out anything else, and i'm almost sure i didn't enabled serial always on since them, and also never tried to print from marlin mode then... BUT, i got another freeze today from the TFT while i was printing from octoprint right now! so printer is still working, skr1.4/marlin is working normal, TFT jost froze and does not react to anything :/ really strange because this rules out almost everthing i thought could be the issue, like havein bad USB/SD ... the only thing still was gooing on, was that that marlin sent M114 to got some status update on the TFT as its not recognizing the print from octoprint host.. so either its ah hardware fault, temp, issue, but i doubt that, because i had again ah couple of successfully prints (even with octoprint) with no tft freeze ... |
Just tested https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware.git which is the last build on Feb. 24th before #1633 was released and it switched also to Touchscreen when starting a print from Marlin mode, but this time the Touchscreen updated regularly and after stopping and restart it restarted in Touchmode. Last test for today is #1468 from Jan. 7th https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/tree/c367983689afc3cd4fe1f7b230f8a02f32b6b47d |
So using https://github.com/bigtreetech/BIGTREETECH-TouchScreenFirmware/tree/c367983689afc3cd4fe1f7b230f8a02f32b6b47d |
The boot issue is related to LPC based mainboard. There is some issue with these mainboards which is preventing booting if the state of serial pins on TFT controllers is changed while the mainboards is booting. I had already found the boot issue in marlin mode while working on #1633 and tried to fix it there, but it looks like the fix is causing other issues. |
@guruathwal By the way in config.ini file default mode is set to touch mode. Shouldn't it restart in tft mode regardless of the last state of the screen mode? I expect to always open in tft mode when I choose this setting to touch mode as default. Default Mode |
sarvenn This option is only for the first time it is turned on but the TFT (usually) remembers the mode after that. |
Have you found the PR which broke it? |
I'm away from home for drive tests etc. So I'm unable to try but @DaStivi has 24 feb firmware, I had 26 feb firmware. Something must be in between. My "speaker" is enabled at marlin mode. Also powerloss recovery was enabled at marlin and tft. Any relation possibility? |
i've got an SKR 1.4 LPC1768 (marlin 2.0.7.2) and if i understood oldman4U's findings correctly the issue started somewhere after 7.1. commits... |
This |
i looked into the files.. and one thing i found regarding serial was this here (have to admit didn't go through all files) .. what have been changed in this PR #1468 the function moved out of the if loop and in #1633 the same file changed slightly again and moved the function back into an if-loop: |
@DaStivi |
yeah and thats excactly my issue i've with the the latest builds again now! :) so even if its (Serial_ReSourceInit();) in the if-loop again the board don't boot.. and if i understood the timeline now correctly, it worked before the code was inside the if-loop?! |
@DaStivi ok, which is the latest one of these commits that was working? |
When the line was moved outside the loop I did not test by booting in marlin mode. With SKR 1.4 it did not boot before #1633 |
I sent Gurmeet the # of the PRs related to the two issues reported with this ticket. Hope he will fix them soon. Thank you |
i've got to test by my own now... so... with the firmware before #1633 from 26.2. booting in marlin mode didn't worked! all was with serial_always_on = disabled but at this state the screen is frozen! no switching back to touch mode possible... keep the rotary encoder pressed and then reseted, i got the mode-select screen and could switch but wasn't fast enough to confirm, as the screen freezed again! and as i've connected Octoprint, i also see that in octoprint the board is connected and i can work with it! with an ESP01s conected onto the TFT, i got no connection to Marlin! noticed something other too, when in serial_always_on mode enabled, you can switch to marlin mode, while printer is initialzied.. but then assoon as you reset its broken.. ive to admit, in the past where i noticed this when-print-in-marlin-back-to-touch-mode thing happend, i'd might never ever booted from marlin, just switches everytime from touch to marlin without reseting... so one thing looks like to be fixed, what was initially the issue in here,.... and basically all whats still left is the, when serial_always_on breaks marlin-lcd mode (and it might just be ah wrong turn, that with the special case where you just switch the modes while in operation and than starting ah print, the tft still believes half way to be in touch mode...) short video: |
Please check Gurmeet's #1680 as it should fix the reported issues. 🙏 |
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. |
Description
If TFT is set to Marlin Mode (LCD Emulator/Simulator) and printer is reseted or power cycled, marlin does not boot, as soon as TFT is switched to touch mode marlin does boot up correctly!
Steps to reproduce
Expected behavior
Board/Marlin should boot up normal and just connect in Marlin/LCD-Emulator Mode (subsequently OctoPrint is able to connect)
Actual behavior
Board does not boot
Hardware Variant
B1-TFT35
TFT Firmware Version & Main Board Firmware details
Marlin: 2.0.7.2
TFT: prebuilt from 24.2.2021 (d345350)
The text was updated successfully, but these errors were encountered: