We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I used the tmc2209 successfully with an old esphome version and the following settings:
external_components: source: github://glmnet/esphome@stepper-tmc2209 components: [tmc2209]
in the custom component it installs
cg.add_library("teemuatlut/TMCStepper", "0.7.1")
now when I compile i get following error:
In file included from src/esphome/components/tmc2209/tmc2209.cpp:1: src/esphome/components/tmc2209/tmc2209.h: In constructor 'esphome::tmc::TMC2209::TMC2209(esphome::GPIOPin*, esphome::GPIOPin*, bool)': src/esphome/components/tmc2209/tmc2209.h:19:42: error: no matching function for call to 'TMC2209Stepper::TMC2209Stepper(esphome::tmc::TMC2209*, float, int)' stepper_driver_(this, 0.15f, 0b00) {} ^ In file included from src/esphome/components/tmc2209/tmc2209.h:8, from src/esphome/components/tmc2209/tmc2209.cpp:1: .piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1023:3: note: candidate: 'TMC2209Stepper::TMC2209Stepper(Stream*, float, uint8_t)' TMC2209Stepper(Stream * SerialPort, float RS, uint8_t addr) : ^~~~~~~~~~~~~~ .piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1023:3: note: no known conversion for argument 1 from 'esphome::tmc::TMC2209*' to 'Stream*' .piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate: 'constexpr TMC2209Stepper::TMC2209Stepper(const TMC2209Stepper&)' class TMC2209Stepper : public TMC2208Stepper { ^~~~~~~~~~~~~~ .piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate expects 1 argument, 3 provided .piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate: 'constexpr TMC2209Stepper::TMC2209Stepper(TMC2209Stepper&&)' .piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate expects 1 argument, 3 provided *** [.pioenvs/tmc2209/src/esphome/components/tmc2209/tmc2209.cpp.o] Error 1
I also tried to use the version 0.7.3 resuling in the same error. Can you advise how I can make it compile?
The text was updated successfully, but these errors were encountered:
I was able to make it compile but now I'm facing another error. Perhaps we could work on it together? esphome/esphome#6329
Sorry, something went wrong.
No branches or pull requests
Hi,
I used the tmc2209 successfully with an old esphome version and the following settings:
external_components:
source: github://glmnet/esphome@stepper-tmc2209
components: [tmc2209]
in the custom component it installs
cg.add_library("teemuatlut/TMCStepper", "0.7.1")
now when I compile i get following error:
In file included from src/esphome/components/tmc2209/tmc2209.cpp:1:
src/esphome/components/tmc2209/tmc2209.h: In constructor 'esphome::tmc::TMC2209::TMC2209(esphome::GPIOPin*, esphome::GPIOPin*, bool)':
src/esphome/components/tmc2209/tmc2209.h:19:42: error: no matching function for call to 'TMC2209Stepper::TMC2209Stepper(esphome::tmc::TMC2209*, float, int)'
stepper_driver_(this, 0.15f, 0b00) {}
^
In file included from src/esphome/components/tmc2209/tmc2209.h:8,
from src/esphome/components/tmc2209/tmc2209.cpp:1:
.piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1023:3: note: candidate: 'TMC2209Stepper::TMC2209Stepper(Stream*, float, uint8_t)'
TMC2209Stepper(Stream * SerialPort, float RS, uint8_t addr) :
^~~~~~~~~~~~~~
.piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1023:3: note: no known conversion for argument 1 from 'esphome::tmc::TMC2209*' to 'Stream*'
.piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate: 'constexpr TMC2209Stepper::TMC2209Stepper(const TMC2209Stepper&)'
class TMC2209Stepper : public TMC2208Stepper {
^~~~~~~~~~~~~~
.piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate expects 1 argument, 3 provided
.piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate: 'constexpr TMC2209Stepper::TMC2209Stepper(TMC2209Stepper&&)'
.piolibdeps/tmc2209/TMCStepper/src/TMCStepper.h:1021:7: note: candidate expects 1 argument, 3 provided
*** [.pioenvs/tmc2209/src/esphome/components/tmc2209/tmc2209.cpp.o] Error 1
I also tried to use the version 0.7.3 resuling in the same error.
Can you advise how I can make it compile?
The text was updated successfully, but these errors were encountered: