-
-
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
Fix emergency parser for stm32f1 #21011
Fix emergency parser for stm32f1 #21011
Conversation
Thanks for the fix. I’m the original author. But I don’t have a F1 board with usb serial to test. So I just did a blind work. If your fix works, it’s great. |
I use a different hook ( (I cannot call the original hook as it is not accessible (static) and no way to get its address. Workaround would be to copy the full hook functionality.) |
Ok. It's good if we don't need that rx callback :-) The only thing we must make sure is that normal serial works while EP is enabled. But your fix looks good to me. |
RAM & Flash report:
|
|
@thinkyhead Thank you for the cleanups. Look good to me. |
Hi. I installed Marlin with your fix and now the screen freezes, before my printer crashed as soon as I pressed the Purge More button, like shown in this video from another user: https://youtu.be/kq4-bfFMH9I It would be great if you could help THANK YOU Marlin config attached |
@oldman4U We prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:
After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report. |
@oldman4U you can reach me at github@mels.email to continue this conversation. |
Hi Keith. Please take one minute to check the BTT Touchscreen firmware page to see, that (together with a stale bot and some other persons there) I tried to make the repository useful again, after having more than 250 open tickets. Thank you |
* bugfix-2.0.x: (177 commits) [cron] Bump distribution date (2021-02-11) chmod and paths [cron] Bump distribution date (2021-02-10) Reheat bed first Ender 3 V2 DWIN cleanup (MarlinFirmware#21026) Update M808 comment MAX Thermocouples rework (MarlinFirmware#20447) [cron] Bump distribution date (2021-02-09) Serial refactor. Default 8-bit ECHO to int, not char (MarlinFirmware#20985) Fix STM32F1 emergency parser (MarlinFirmware#21011) Allow SERVO0_PIN override on Creality Melzi (MarlinFirmware#21007) Fix animated boot screen Fix: Unsupported use of %f in printf (MarlinFirmware#21001) Fix mini12864 v2.1 + PSU control + NeoPixel backlight (MarlinFirmware#21021) [cron] Bump distribution date (2021-02-08) Fix LVGL "more" menu user items (MarlinFirmware#21004) Fix TEMP_0_TR_ENABLE, rename temp conditions (MarlinFirmware#21016) Fix ESP32 I2S init placement (MarlinFirmware#21019) Improve RPi host kernel panic mitigation Melzi, comments cleanup ...
…rmpel/Marlin into rmpel/bugfix-2.0.x/ender-3-skr-14-turbo * 'rmpel/bugfix-2.0.x/ender-3-skr-14-turbo' of github.com:rmpel/Marlin: (177 commits) [cron] Bump distribution date (2021-02-11) chmod and paths [cron] Bump distribution date (2021-02-10) Reheat bed first Ender 3 V2 DWIN cleanup (MarlinFirmware#21026) Update M808 comment MAX Thermocouples rework (MarlinFirmware#20447) [cron] Bump distribution date (2021-02-09) Serial refactor. Default 8-bit ECHO to int, not char (MarlinFirmware#20985) Fix STM32F1 emergency parser (MarlinFirmware#21011) Allow SERVO0_PIN override on Creality Melzi (MarlinFirmware#21007) Fix animated boot screen Fix: Unsupported use of %f in printf (MarlinFirmware#21001) Fix mini12864 v2.1 + PSU control + NeoPixel backlight (MarlinFirmware#21021) [cron] Bump distribution date (2021-02-08) Fix LVGL "more" menu user items (MarlinFirmware#21004) Fix TEMP_0_TR_ENABLE, rename temp conditions (MarlinFirmware#21016) Fix ESP32 I2S init placement (MarlinFirmware#21019) Improve RPi host kernel panic mitigation Melzi, comments cleanup ...
* bugfix-2.0.x: (177 commits) [cron] Bump distribution date (2021-02-11) chmod and paths [cron] Bump distribution date (2021-02-10) Reheat bed first Ender 3 V2 DWIN cleanup (MarlinFirmware#21026) Update M808 comment MAX Thermocouples rework (MarlinFirmware#20447) [cron] Bump distribution date (2021-02-09) Serial refactor. Default 8-bit ECHO to int, not char (MarlinFirmware#20985) Fix STM32F1 emergency parser (MarlinFirmware#21011) Allow SERVO0_PIN override on Creality Melzi (MarlinFirmware#21007) Fix animated boot screen Fix: Unsupported use of %f in printf (MarlinFirmware#21001) Fix mini12864 v2.1 + PSU control + NeoPixel backlight (MarlinFirmware#21021) [cron] Bump distribution date (2021-02-08) Fix LVGL "more" menu user items (MarlinFirmware#21004) Fix TEMP_0_TR_ENABLE, rename temp conditions (MarlinFirmware#21016) Fix ESP32 I2S init placement (MarlinFirmware#21019) Improve RPi host kernel panic mitigation Melzi, comments cleanup ...
@thisiskeithb all the stm32 based board restarts after selecting purge more in TFT mode. There are a couple of issues in BTT Touch screen firmware repository. Please have a look. Maybe it needs a fix from the Marlin side, I don't know. |
Open a new issue about that and give more details and configs. |
I would like to add that the crash can be forced without any TFT attached by sending gCode commands via serial. It is my feeling that it is not Marlin but STM32 library related because everything works fine using the same commands on LPC based boards. So not sure where to start. |
Description
Fixes emergency parser support for stm32f1 when using USB Composite Serial and adds emergency parser support when using USB Serial.
Requirements
Board using stm32f1. (Tested using Bigtreetech SKR Mini-E3 v1.2 with both USB Composite Serial and USB Serial.)
Benefits
Adds support for emergency parser when using USB Serial and fixes support for USB Composite Serial.
The original changes (#19279, #19281) do not work (for me). The function
MarlinCompositeSerial.peek()
return multiple times the same character in:Marlin/Marlin/src/HAL/STM32F1/msc_sd.cpp
Line 48 in 5ee1087
Configurations
Use SKR Mini-E3 v1.2 example config
#define EMERGENCY_PARSER
For USB Composite Serial:
#define USE_USB_COMPOSITE
Related Issues
Original implementation: #19279, #19281, Related issues: #19623