luc-github / ESP3DLib

ESP3D library for Marlin and ESP32 boards
GNU General Public License v3.0
97 stars 32 forks source link

[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 closed 7 months ago

luc-github commented 1 year ago

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 commented 1 year ago

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 commented 7 months ago

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