Open nanobyte84 opened 11 months ago
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)' stepperdriver(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?
I was able to make it compile but now I'm facing another error. Perhaps we could work on it together? https://github.com/esphome/esphome/discussions/6329
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)' stepperdriver(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 1I also tried to use the version 0.7.3 resuling in the same error. Can you advise how I can make it compile?