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

Compile Error Arduino UNO R4 WIFI #62

Open
WollexD opened this issue Mar 18, 2024 · 5 comments
Open

Compile Error Arduino UNO R4 WIFI #62

WollexD opened this issue Mar 18, 2024 · 5 comments

Comments

@WollexD
Copy link

WollexD commented Mar 18, 2024

C:\..Path..\libraries\TMC2209\src\TMC2209\TMC2209.cpp: In member function 'void TMC2209::setup(SoftwareSerial&, long int, TMC2209::SerialAddress)': C:\..Path..\libraries\TMC2209\src\TMC2209\TMC2209.cpp:85:25: error: 'class SoftwareSerial' has no member named 'end'; did you mean 'read'? software_serial_ptr_->end(); ^~~ read

This Error is shown on my Arduino Compiler.
Board: Arduino Uno R4 Wifi
Code: Example Code Move At Velocity

Only Change:

Line 9: HardwareSerial & serial_stream = Serial1;

@aagum-bae
Copy link

Hi I'm facing similar error in ESP32, were you able to find a solution?

@AlistairKeiller
Copy link

You can comment out line 84 of TMC2209.cpp, "software_serial_ptr_->end();", and it will compile and work with software serial. Similarly, commenting out "hardware_serial_ptr_->end();" makes hardware serial work without segfault

@AlistairKeiller
Copy link

here is my fork that works for me on an R4 wifi: https://github.com/AlistairKeiller/TMC2209

@aagum-bae
Copy link

hi this was fixed for ESP32 in the latest version of the library, hence my issue got resolved, thanks for the reply

@peterpolidoro
Copy link
Member

The calls to end() were added to handle an edge case where the serial port was not closed properly before calling begin. It seems to cause problems on some platforms but not others. I will comment out those calls to end and release a new version, although that may end up breaking some setups in certain situations. Please try version 9.4.2 and let me know if it fixes your problems. Thanks!

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

No branches or pull requests

4 participants