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]Incompatibility between esp32 latest core (2.0.6 / 2.0.7 => PIO 5.0~6.1) and TMC2209 in UART mode #65

Closed
luc-github opened this issue Mar 25, 2023 · 2 comments
Labels

Comments

@luc-github
Copy link
Owner

luc-github commented Mar 25, 2023

Using updated arduino core : 2.0.6/2.07 => PlatformIO 5.0~6.1
ESP3DLib is working well but Marlin UART TMC support has issue
if using TMC2209_STANDALONE for the drivers, it is Ok
but using TMC2209 in uart mode will go to dead loop at start

11:10:48.264 > E (151773) uart: uart_get_buffered_data_len(1342): uart driver error

It is not directly linked to ESP3DLib because ESP3DLib does not use / affect stepper drivers but it is esp32 core itself compatibility issue.

Reproduced on several Marlin version 2.1.1, 2.1.2, latest bugfix

Because It is more an esp32 / Marlin / TMC compatibility issue and because my knowledge in Marlin /TMC is limited, I currently do not have solution right now
any feedback / solution to Marlin is welcome

@luc-github
Copy link
Owner Author

luc-github commented Mar 31, 2023

One change could be the analogueWrite that is now implemented in arduino but Marlin has it's own version thanks @solawc for the insight
I will have a look
EDIT: I disabled the analogueWrite from esp32-arduino core and issue is still there, so it is not a conflict between Marlin and core function

@luc-github
Copy link
Owner Author

I close issue - I managed to fix my fork of Marlin for ESP3DLib 3.0 to make it work :
Here the config files for the bugfix-2.1.x
https://github.com/luc-github/MarlinConfigurations/tree/bugfix-2.1.x/config/examples/FYSETC/E4

And my fork based on latest bugfix-2.1.x : https://github.com/luc-github/Marlin/tree/ESP3DLib-V3-bugfix-2.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant