@magokimbra: compilazione con TMC2130 October 03, 2017 05:13AM |
Registered: 7 years ago Posts: 16 |
ATTENZIONE: la libreria TMC2130Stepper dichiara di funzionare sulle architetture (avr) e potrebbe non essere compatibile con la tua scheda che utilizza l'architettura (sam) sketch\src\printer\printer.cpp: In function 'void automatic_current_control(TMC2130Stepper&, String)': sketch\src\printer\printer.cpp:1728:28: error: 'print_job_counter' was not declared in this scope duration_t elapsed = print_job_counter.duration(); ^ In file included from sketch\src\printer\../../src/HAL/HAL.h:39:0, from sketch\src\printer\../../base.h:85, from sketch\src\printer\printer.cpp:29: sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:122:60: error: no matching function for call to 'Com::print(String&)' #define SERIAL_TXT(txt) (Com::print(txt)) ^ sketch\src\printer\printer.cpp:1733:7: note: in expansion of macro 'SERIAL_TXT' SERIAL_TXT(axisID); ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:122:60: note: candidates are: #define SERIAL_TXT(txt) (Com::print(txt)) ^ sketch\src\printer\printer.cpp:1733:7: note: in expansion of macro 'SERIAL_TXT' SERIAL_TXT(axisID); ^ In file included from sketch\src\printer\../../src/HAL/HAL.h:39:0, from sketch\src\printer\../../base.h:85, from sketch\src\printer\printer.cpp:29: sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:81:17: note: static void Com::print(const char*) static void print(const char* text); ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:81:17: note: no known conversion for argument 1 from 'String' to 'const char*' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:82:17: note: static void Com::print(long int) static void print(long value); ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:82:17: note: no known conversion for argument 1 from 'String' to 'long int' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:83:24: note: static void Com::print(char) static inline void print(char c) { HAL::serialWriteByte(c); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:83:24: note: no known conversion for argument 1 from 'String' to 'char' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:84:24: note: static void Com::print(uint32_t) static inline void print(uint32_t value) { printNumber(value); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:84:24: note: no known conversion for argument 1 from 'String' to 'uint32_t {aka long unsigned int}' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:85:24: note: static void Com::print(int) static inline void print(int value) { print((long)value); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:85:24: note: no known conversion for argument 1 from 'String' to 'int' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:86:24: note: static void Com::print(uint16_t) static inline void print(uint16_t value) { print((long)value); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:86:24: note: no known conversion for argument 1 from 'String' to 'uint16_t {aka short unsigned int}' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:87:24: note: static void Com::print(float) static inline void print(float number) { printFloat(number, 6); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:87:24: note: no known conversion for argument 1 from 'String' to 'float' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:88:24: note: static void Com::print(float, uint8_t) static inline void print(float number, uint8_t digits) { printFloat(number, digits); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:88:24: note: candidate expects 2 arguments, 1 provided sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:89:24: note: static void Com::print(double) static inline void print(double number) { printFloat(number, 6); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:89:24: note: no known conversion for argument 1 from 'String' to 'double' sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:90:24: note: static void Com::print(double, uint8_t) static inline void print(double number, uint8_t digits) { printFloat(number, digits); } ^ sketch\src\printer\../../src/HAL/HAL_DUE/communication.h:90:24: note: candidate expects 2 arguments, 1 provided exit status 1 Errore durante la compilazione per la scheda Arduino Due (Programming Port).
Re: @magokimbra: compilazione con TMC2130 October 03, 2017 05:40AM |
Registered: 7 years ago Posts: 16 |
#define _TMC2130_DEFINE(ST) TMC2130Stepper stepper##ST(ST##_ENABLE_PIN, ST##_DIR_PIN, ST##_STEP_PIN, ST##_CHIP_SELECT)diventa
#define _TMC2130_DEFINE(ST) TMC2130Stepper stepper##ST(ST##_ENABLE_PIN, ST##_DIR_PIN, ST##_STEP_PIN, ST##_CS_PIN)
Re: @magokimbra: compilazione con TMC2130 October 03, 2017 09:24AM |
Registered: 7 years ago Posts: 16 |
void automatic_current_control(TMC2130Stepper &st, String axisID) {diventa
void automatic_current_control(TMC2130Stepper &st, char* axisID) {
duration_t elapsed = print_job_counter.duration();diventa
duration_t elapsed = printer.print_job_counter.duration();
Re: @magokimbra: compilazione con TMC2130 October 03, 2017 10:49AM |
Registered: 10 years ago Posts: 6,409 |
Re: @magokimbra: compilazione con TMC2130 October 03, 2017 02:45PM |
Registered: 7 years ago Posts: 16 |
configuiration_pins.h 260 #define H0_AUTO_FAN_PIN ORIG_FAN0_PIN tmc2130.h 34 static bool auto_current_control; m906.h x tmc2130 #define CODE_M906
Re: @magokimbra: compilazione con TMC2130 October 03, 2017 04:40PM |
Registered: 10 years ago Posts: 6,409 |
Re: @magokimbra: compilazione con TMC2130 October 04, 2017 04:59AM |
Registered: 7 years ago Posts: 16 |
Re: @magokimbra: compilazione con TMC2130 October 04, 2017 08:00AM |
Registered: 12 years ago Posts: 414 |
--- Prusa i3 Steel (20x20x20) --- Prusa i3 Steel XL (30x30x30)
Motori 200 passi Motori 400 passi
Stepper drive - DRV8825 Stepper drive - DRV8825
RAMPS 1.4 RADDS 1.5
HotEnd IeC HotEnd IeC
FW MK4DUO 4.3.2 FW MK4DUO 4.3.5
Re: @magokimbra: compilazione con TMC2130 October 04, 2017 10:45AM |
Registered: 7 years ago Posts: 16 |
Re: @magokimbra: compilazione con TMC2130 October 05, 2017 03:19PM |
Registered: 8 years ago Posts: 754 |
interessantissimo.... credo sia cio' che si pensava di fare, passando tutti i valori sai come configurarei paramenti advance, sempre che nel fw non sia cambiato qualcosa dall'ultima volta che ci ho guardato...Quote
laudix
Ciao a tutti.
Sono molto interessato alla discussione perche sto valuatndo di provare anche io questi drivers, allego un foglio excel che ho trovato in giro e che dovrebbe servire per calcolare i valori da impostare. io l'ho guardato superficialmente ma magari puo esservi utile.
Un saluto
Re: @magokimbra: compilazione con TMC2130 October 05, 2017 03:42PM |
Registered: 7 years ago Posts: 16 |
Re: @magokimbra: compilazione con TMC2130 October 10, 2017 02:59PM |
Registered: 7 years ago Posts: 16 |
#define WIRE Wire1e tutto cio' che ne consegue per renderla dipendente dalla MB...
Re: @magokimbra: compilazione con TMC2130 January 23, 2018 05:17PM |
Registered: 9 years ago Posts: 7 |