Hi,
I am new to Marlin and just finished setting up the configuration file, but whenever I try to compile the code I get the following error
could someone try to help me?
Thanks,
Ethan
I am new to Marlin and just finished setting up the configuration file, but whenever I try to compile the code I get the following error
C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans3.ltrans.o: In function `position_is_reachable_by_probe(float const&, float const&) [clone .isra.1] [clone .lto_priv.164]': : (.text+0x6fa): undefined reference to `TMC2130Stepper::getOTPW()' C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans3.ltrans.o: In function `void tmc_report_otpw(TMC2130Stepper&, TMC_AxisEnum)': : (.text+0x750): undefined reference to `TMC2130Stepper::getCurrent()' C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans3.ltrans.o: In function `void tmc_set_current(TMC2130Stepper&, int)': : (.text.unlikely+0x18): undefined reference to `TMC2130Stepper::setCurrent(unsigned int, float, float)' C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans4.ltrans.o: In function `tmc2130_init(TMC2130Stepper&, unsigned int, unsigned int, unsigned long, float) [clone .constprop.63]': : (.text+0x1cdc): undefined reference to `TMC2130Stepper::begin()' : (.text+0x1cf6): undefined reference to `TMC2130Stepper::setCurrent(unsigned int, float, float)' : (.text+0x1d00): undefined reference to `TMC2130Stepper::microsteps(unsigned int)' : (.text+0x1d08): undefined reference to `TMC2130Stepper::blank_time(unsigned char)' : (.text+0x1d10): undefined reference to `TMC2130Stepper::toff(unsigned char)' : (.text+0x1d18): undefined reference to `TMC2130Stepper::intpol(bool)' : (.text+0x1d20): undefined reference to `TMC2130Stepper::TPOWERDOWN(unsigned char)' : (.text+0x1d28): undefined reference to `TMC2130Stepper::hysteresis_start(unsigned char)' : (.text+0x1d30): undefined reference to `TMC2130Stepper::hysteresis_end(signed char)' : (.text+0x1d38): undefined reference to `TMC2130Stepper::pwm_freq(unsigned char)' : (.text+0x1d40): undefined reference to `TMC2130Stepper::pwm_autoscale(bool)' : (.text+0x1d48): undefined reference to `TMC2130Stepper::pwm_grad(unsigned char)' : (.text+0x1d50): undefined reference to `TMC2130Stepper::pwm_ampl(unsigned char)' : (.text+0x1d58): undefined reference to `TMC2130Stepper::en_pwm_mode(bool)' : (.text+0x1d6a): undefined reference to `TMC2130Stepper::GSTAT()' C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans17.ltrans.o: In function `global constructors keyed to 65535_0_G26_Mesh_Validation_Tool.cpp.o.6491': : (.text.startup+0x72): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)' : (.text.startup+0x8a): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)' : (.text.startup+0xa2): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)' : (.text.startup+0xba): undefined reference to `TMC2130Stepper::TMC2130Stepper(unsigned int, unsigned int, unsigned int, unsigned int)' C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans12.ltrans.o: In function `MarlinSettings::report(bool)': : (.text+0x8fc): undefined reference to `TMC2130Stepper::getCurrent()' : (.text+0x90e): undefined reference to `TMC2130Stepper::getCurrent()' : (.text+0x920): undefined reference to `TMC2130Stepper::getCurrent()' : (.text+0x93a): undefined reference to `TMC2130Stepper::getCurrent()' C:\Users\ethan\AppData\Local\Temp\ccFKhzde.ltrans18.ltrans.o: In function `gcode_M912()': : (.text+0x56): undefined reference to `TMC2130Stepper::clear_otpw()' : (.text+0x86): undefined reference to `TMC2130Stepper::clear_otpw()' : (.text+0xb4): undefined reference to `TMC2130Stepper::clear_otpw()' : (.text+0xe2): undefined reference to `TMC2130Stepper::clear_otpw()' collect2.exe: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.
could someone try to help me?
Thanks,
Ethan