Welcome! Log In Create A New Profile

Advanced

TMC2130 and Marlin 1.1.9

Posted by Canyonazo 
TMC2130 and Marlin 1.1.9
January 24, 2019 04:50AM
Hello, I want to use x2 TMC2130 driver (on the X and Y axis) on SPI mode using Marlin 1.1.9. However I am not able to compile the code and I constantly get this error:
In file included from sketch\stepper_indirection.cpp:40:0:
stepper.h:225: error: redefinition of 'class Stepper'
class Stepper {
      ^
In file included from sketch\stepper_indirection.cpp:1:0:

C:\Program Files (x86)\Arduino\libraries\Stepper\src/Stepper.h:83:7: error: previous definition of 'class Stepper'

class Stepper {
      ^
sketch\stepper_indirection.cpp: In function 'void reset_stepper_drivers()':
stepper_indirection.cpp:585: error: 'class Stepper' has no member named 'set_directions'
  stepper.set_directions();
          ^
exit status 1
redefinition of 'class Stepper'


For the extruder and the Z axis I will use the basic A4988. So, in Configuration.h I have:
#define X_DRIVER_TYPE TMC2130
#define Y_DRIVER_TYPE TMC2130

And the rest of them are commented.

I am using Arduino 1.8.5 and the TMC2130 library on its 2.3.0 version. I have tried with different ones but I still don´t get it.

Any help would be appreciated smiling smiley thank you
Re: TMC2130 and Marlin 1.1.9
January 24, 2019 06:26AM
replicated your version of arduino 1.8.5 with TMC2130Stepper v2.3.0 and 2.5.0

only changed the two driver type lines. (and motherboard to be a ramps_14_efb)

It compiled fine.

what else did you change?
What does you full configuration.h look like

Are you using the arduino app or the install or zip? (the app is known to be broken)

Edited 2 time(s). Last edit at 01/24/2019 06:29AM by Dust.
Re: TMC2130 and Marlin 1.1.9
January 24, 2019 06:56AM
Quote

replicated your version of arduino 1.8.5 with TMC2130Stepper v2.3.0 and 2.5.0
[...]
Are you using the arduino app or the install or zip? (the app is known to be broken)

I first installed the 2.5.0 library with Arduino app and it wasn´t recognised, so i installed it with the github zip. It was then recognized but I came up with the error. 2.3.0 version (and more of them, all over 2.2.1 were installed by zip as well and just for giving it a try...)

Also I have attached my Configuration.h and Configuration_adv.h files so you can get a better idea
Attachments:
open | download - Configuration_adv.h (67.4 KB)
open | download - Configuration.h (70.3 KB)
Re: TMC2130 and Marlin 1.1.9
January 24, 2019 09:01AM
Your configuration files work fine. The issue is with your arduino software or that library

I was meaning the ardunio ide program, how did you install that?
There are 3 options

Windows Installer, for Windows XP and up
Windows ZIP file for non admin install
Windows app Requires Win 8.1 or 10

The "app" version is known to have issues, use the Installer or the Zip version.
Re: TMC2130 and Marlin 1.1.9
January 24, 2019 09:13AM
To Install the library all you need to is start up the ardunio IDE
Select Sketch | Include library | Manage Libraries

This starts the library manager

Enter TMC2130Stepper into the filter box (top right)

then select the version you want and click install.
Re: TMC2130 and Marlin 1.1.9
January 24, 2019 10:26AM
I am using the windows installer, the .exe file
Re: TMC2130 and Marlin 1.1.9
January 24, 2019 10:47AM
Problem solved

Those lines were added on stepper.h
#include < TMC2130Stepper.h >
#include < TMC2130Stepper_REGDEFS.h >
#include < TMC2130Stepper_UTILITY.h >

I deleted them and now it compiles without any problem

Thank you for your help and time!

Edited 1 time(s). Last edit at 01/24/2019 10:48AM by Canyonazo.
Sorry, only registered users may post in this forum.

Click here to login