teemuatlut / TMC2130Stepper

Arduino library for Trinamic TMC2130 Stepper driver
MIT License
159 stars 50 forks source link

Can't compile in Arduino IDE, "Update TMC2130Stepper library to 2.2.1 or newer." #47

Closed Flawl3ssSWE closed 6 years ago

Flawl3ssSWE commented 6 years ago

I configured my Marlin for my new TMC2130 v1.1 today and when I hit the verify button I received this error:

` In file included from sketch\MarlinConfig.h:39:0,

             from sketch\G26_Mesh_Validation_Tool.cpp:27:

SanityCheck.h:1439: error: #error "Update TMC2130Stepper library to 2.2.1 or newer."

 #error "Update TMC2130Stepper library to 2.2.1 or newer."

  ^

exit status 1

error "Update TMC2130Stepper library to 2.2.1 or newer."

` **I have installed the library from Arduino 2.3.0 and tried downloading it from GitHub, I also tried version 2.2.1 but still no luck. I also tried different Arduino IDE versions but still no luck. Have anyone got any idea how to fix it.

If you need the TMC2130 part from the configuration_adv.h here it is:** // @section tmc_smart

/**

/**

if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)

define R_SENSE 0.11 // R_sense resistor for SilentStepStick2130

define HOLD_MULTIPLIER 0.5 // Scales down the holding current from run current

define INTERPOLATE true // Interpolate X/Y/Z_MICROSTEPS to 256

define X_CURRENT 600 // rms current in mA. Multiply by 1.41 for peak current.

define X_MICROSTEPS 16 // 0..256

define Y_CURRENT 600

define Y_MICROSTEPS 16

define Z_CURRENT 700

define Z_MICROSTEPS 16

define X2_CURRENT 800

define X2_MICROSTEPS 16

define Y2_CURRENT 800

define Y2_MICROSTEPS 16

define Z2_CURRENT 800

define Z2_MICROSTEPS 16

define E0_CURRENT 600

define E0_MICROSTEPS 16

define E1_CURRENT 600

define E1_MICROSTEPS 16

define E2_CURRENT 800

define E2_MICROSTEPS 16

define E3_CURRENT 800

define E3_MICROSTEPS 16

define E4_CURRENT 800

define E4_MICROSTEPS 16

/**

endif // TMC2130 || TMC2208

teemuatlut commented 6 years ago

What Marlin branch are you using? Please paste in the full error log produced.

Flawl3ssSWE commented 6 years ago

I am using Jim Browns easy config: https://github.com/JimBrown/MarlinTarantula so it is bugfix 1.1.x, this is the error log I think:

Build options changed, rebuilding all In file included from sketch\MarlinConfig.h:40:0,

             from sketch\G26_Mesh_Validation_Tool.cpp:27:

SanityCheck.h:1439: error: #error "Update TMC2130Stepper library to 2.2.1 or newer."

 #error "Update TMC2130Stepper library to 2.2.1 or newer."

  ^

exit status 1

error "Update TMC2130Stepper library to 2.2.1 or newer."

Flawl3ssSWE commented 6 years ago

7dc6569ecfced693aa39a8978e1e21ae

Flawl3ssSWE commented 6 years ago

the current version of the TMC2130Stepper library was 2.4.3 downloaded here from GitHub, I have also tried restarting the IDE and my computer.

teemuatlut commented 6 years ago

Try re-downloading the firmware. I was able to compile it with TMC2130 enabled for X Y Z E0. If that doesn't help, then attach your config files here.

Flawl3ssSWE commented 6 years ago

Since it was not working earlier today, I decided to convert to Marlin 2.0 and now I don’t have that error anymore.

Thanks for the help!

6 aug. 2018 kl. 21:03 skrev teemuatlut notifications@github.com:

Try re-downloading the firmware. I was able to compile it with TMC2130 enabled for X Y Z E0. If that doesn't help, then attach your config files here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.