Skip to content
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] 250K baud rate unreliable (MKS E3D) #22339

Closed
TimeJammer opened this issue Jul 12, 2021 · 18 comments
Closed

[BUG] 250K baud rate unreliable (MKS E3D) #22339

TimeJammer opened this issue Jul 12, 2021 · 18 comments
Labels

Comments

@TimeJammer
Copy link

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

Hello to everyone. I have mks E3D card and mks tft 35. In Marlin 2.0.9.1, 250000 baud rate printer stops randomly. In Marlin 2.0.7 and before, the baud rate of 250000 was running smoothly for 1.5 years.
In version 2.0.9.1 it is stable only at 115200. What is the reason of this ?

I did not cancel the original screen of the printer (Ender 3) and I use it together with tft 35. //#define SERIAL_PORT_2 The -1 setting does not work in the new marlin and I disabled it because it was said to be disabled in the new suggestions. Could this be the reason? While other versions do not have this problem, what could be the reason why 250000 baud rate does not work stable only in 2.0.9.1. Could it be caused by something or a change that I did wrong in this version? Thanks for your responses.

Motherboard: Mks E3D(tmc2209)
Screen: Mks TFT35 with wireless.
Ank mks 3d touch sensor.

Thanks in advance for your returns.

Bug Timeline

New Bug. In Marlin 2.0.9.1

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

Marlin 2.0.9.1

Printer model

Ender 3 MKS E3D Board + TFT35

Electronics

No response

Add-ons

No response

Your Slicer

Cura

Host Software

Other (explain below)

Additional information & file uploads

No response

@ellensp
Copy link
Contributor

ellensp commented Jul 12, 2021

Please attach your configuration files.

@TimeJammer
Copy link
Author

Please attach your configuration files.

First of all, thanks for the reply.

My Config Files is here. Thakns again.

https://drive.google.com/drive/folders/1It5f6x7WfwWC8Tr32RBmpx9jTejCS1e9?usp=sharing

@ellensp
Copy link
Contributor

ellensp commented Jul 12, 2021

Configuration.zip
Config files stored locally.

@TimeJammer
Copy link
Author

Ok thans for

Configuration.zip
Config files stored locally.

Thanks for the warning.

The baud rate in the config file I sent is 115200.
I'm having a random stop at 250000. The previous marlin version didn't have this.

@ellensp
Copy link
Contributor

ellensp commented Jul 12, 2021

Did you test absolutely latest bugfix ?
as this was added 5 days ago #22292

@TimeJammer
Copy link
Author

Also the same is happening in the example config file.

It is attached to my files.

Configuration.zip

@TimeJammer
Copy link
Author

Did you test absolutely latest bugfix ?
as this was added 5 days ago #22292

Yes, I tested it too. It's giving the same error. Only 2.0.7 and earlier, Only version 2.0.7 and earlier have no problem.

@ellensp
Copy link
Contributor

ellensp commented Jul 12, 2021

What exact error, screen shot? error log?

@TimeJammer
Copy link
Author

What exact error, screen shot? error log?

By error I mean the Printer freezes periodically and then continues. It does not encounter an error during compilation.

Only during printing, the printer stops at 250000 baud rate. But previous versions of marlin did not have this problem. I can only run 115200 with 2.0.9.1.

I use Tft 35 and original Ender 3 screen together.

@CRCinAU
Copy link
Contributor

CRCinAU commented Jul 13, 2021

Enable ADVANCED_OK and take note around the time of the freezes (assuming USB printing) of the B and P values, then attached them.

@TimeJammer
Copy link
Author

Enable ADVANCED_OK and take note around the time of the freezes (assuming USB printing) of the B and P values, then attached them.

I print via MKS TFT 35. I do not print from PC. Can I still do this?

@ldursw
Copy link
Contributor

ldursw commented Jul 18, 2021

Maple and STSTM32 have different implementations for serial communication. To make the stm32 HAL work like stm32f1 it would need some refactoring as mentioned here #21927 (comment).

I've managed to achieve zero resends by using 57600 baud and doing the timer changes from the PR. That part was not merged so you will have to change them manually.

Another option is to go back to libmaple by changing the environment to mks_robin_e3_maple but it's deprecated and may be removed in a future version.

@TimeJammer
Copy link
Author

Maple and STSTM32 have different implementations for serial communication. To make the stm32 HAL work like stm32f1 it would need some refactoring as mentioned here #21927 (comment).

I've managed to achieve zero resends by using 57600 baud and doing the timer changes from the PR. That part was not merged so you will have to change them manually.

Another option is to go back to libmaple by changing the environment to mks_robin_e3_maple but it's deprecated and may be removed in a future version.

Thanks, I'll try and post the result.

@TimeJammer
Copy link
Author

Maple and STSTM32 have different implementations for serial communication. To make the stm32 HAL work like stm32f1 it would need some refactoring as mentioned here #21927 (comment).
I've managed to achieve zero resends by using 57600 baud and doing the timer changes from the PR. That part was not merged so you will have to change them manually.
Another option is to go back to libmaple by changing the environment to mks_robin_e3_maple but it's deprecated and may be removed in a future version.

Thanks, I'll try and post the result.

Unfortunately it didn't work.

@thinkyhead thinkyhead added the Needs: More Data We need more data in order to proceed label Jul 30, 2021
@thinkyhead
Copy link
Member

Serial stuff is pretty low level, so I'm surprised if anything in Marlin itself is directly responsible, but maybe the interrupts are running tighter and stepping on serial processing at some low level.

To narrow down the problem I suggest turning off every optional feature, and even disabling and disconnecting the screen and other extra peripherals, and see if the problem clears up. Then start adding things back one by one until the problem reappears.

@thinkyhead thinkyhead changed the title In Marlin 2.0.9.1, 250000 baud rate printer stops randomly. In Marlin 2.0.7 and before, the baud rate of 250000 was running smoothly [BUG] 250K baud rate unreliable (MKS E3D) Jul 30, 2021
@TimeJammer
Copy link
Author

Serial stuff is pretty low level, so I'm surprised if anything in Marlin itself is directly responsible, but maybe the interrupts are running tighter and stepping on serial processing at some low level.

To narrow down the problem I suggest turning off every optional feature, and even disabling and disconnecting the screen and other extra peripherals, and see if the problem clears up. Then start adding things back one by one until the problem reappears.

Okey i will try and let you know

@github-actions
Copy link

github-actions bot commented Apr 1, 2022

This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days.

@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants