-
Notifications
You must be signed in to change notification settings - Fork 32
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
Comments
Hi I'm facing similar error in ESP32, were you able to find a solution? |
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 |
here is my fork that works for me on an R4 wifi: https://github.com/AlistairKeiller/TMC2209 |
hi this was fixed for ESP32 in the latest version of the library, hence my issue got resolved, thanks for the reply |
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! |
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;
The text was updated successfully, but these errors were encountered: