-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added CNC made by Aviran N #1085
Added CNC made by Aviran N #1085
Conversation
fd6f162
to
e97fb18
Compare
The pins are submitted to the wrong place. That file should be removed and proposed changes to pins files submitted to the MarlinFirmware/Marlin repository. |
@thinkyhead Is 278fda4 (and 0f6df2f) a reasonable solution assuming that pins changes would be submitted MarlinFirmware/Marlin repository? |
If E0 is unused, then Y2 should get mapped to it automatically. |
@thisiskeithb In fact, it doesn't Here are the logsMarlin git:(bugfix-2.1.x) ✗ platformio run --silent -e STM32G0B1RE_btt ; echo "done" >|"/tmp/ipc"
Marlin/src/inc/Warnings.cpp:186:6: warning: #warning "Note: Auto-assigned Y2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)" [-Wcpp]
186 | #warning "Note: Auto-assigned Y2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
| ^~~~~~~
Marlin/src/inc/Warnings.cpp:725:6: warning: #warning "Motherboard DIAG jumpers must be removed when SENSORLESS_HOMING is disabled. (Define DIAG_JUMPERS_REMOVED to suppress this warning.)" [-Wcpp]
725 | #warning "Motherboard DIAG jumpers must be removed when SENSORLESS_HOMING is disabled. (Define DIAG_JUMPERS_REMOVED to suppress this warning.)"
| ^~~~~~~
In file included from Marlin/src/module/stepper/../../inc/../pins/pins.h:1099,
from Marlin/src/module/stepper/../../inc/MarlinConfigPre-5-post.h:32,
from Marlin/src/module/stepper/../../inc/MarlinConfigPre-6-type.h:24,
from Marlin/src/module/stepper/../../inc/MarlinConfig.h:28,
from Marlin/src/module/stepper/trinamic.cpp:28:
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:692:21: error: 'E0_SERIAL_RX_PIN' was not declared in this scope; did you mean 'Y2_SERIAL_RX_PIN'?
692 | #define __EPIN(p,q) E##p##_##q##_PIN
| ^
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:693:20: note: in expansion of macro '__EPIN'
693 | #define _EPIN(p,q) __EPIN(p,q)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:860:32: note: in expansion of macro '_EPIN'
860 | #define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX)
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:59:85: note: in expansion of macro 'Y2_SERIAL_RX_PIN'
59 | #define TMC_UART_SW_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_SERIAL_RX_PIN, ST##_SERIAL_TX_PIN, float(ST##_RSENSE), ST##_SLAVE_ADDRESS)
| ^~
Marlin/src/module/stepper/trinamic.cpp:64:44: note: in expansion of macro 'TMC_UART_SW_DEFINE'
64 | #define _TMC_UART_DEFINE(SWHW, IC, ST, AI) TMC_UART_##SWHW##_DEFINE(IC, ST, TMC_##ST##_LABEL, AI)
| ^~~~~~~~~
Marlin/src/module/stepper/trinamic.cpp:65:39: note: in expansion of macro '_TMC_UART_DEFINE'
65 | #define TMC_UART_DEFINE(SWHW, ST, AI) _TMC_UART_DEFINE(SWHW, ST##_DRIVER_TYPE, ST, AI##_AXIS)
| ^~~~~~~~~~~~~~~~
Marlin/src/module/stepper/trinamic.cpp:328:7: note: in expansion of macro 'TMC_UART_DEFINE'
328 | TMC_UART_DEFINE(SW, Y2, Y);
| ^~~~~~~~~~~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:692:21: error: 'E0_SERIAL_TX_PIN' was not declared in this scope; did you mean 'Y2_SERIAL_TX_PIN'?
692 | #define __EPIN(p,q) E##p##_##q##_PIN
| ^
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:693:20: note: in expansion of macro '__EPIN'
693 | #define _EPIN(p,q) __EPIN(p,q)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:857:32: note: in expansion of macro '_EPIN'
857 | #define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX)
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:59:105: note: in expansion of macro 'Y2_SERIAL_TX_PIN'
59 | #define TMC_UART_SW_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_SERIAL_RX_PIN, ST##_SERIAL_TX_PIN, float(ST##_RSENSE), ST##_SLAVE_ADDRESS)
| ^~
Marlin/src/module/stepper/trinamic.cpp:64:44: note: in expansion of macro 'TMC_UART_SW_DEFINE'
64 | #define _TMC_UART_DEFINE(SWHW, IC, ST, AI) TMC_UART_##SWHW##_DEFINE(IC, ST, TMC_##ST##_LABEL, AI)
| ^~~~~~~~~
Marlin/src/module/stepper/trinamic.cpp:65:39: note: in expansion of macro '_TMC_UART_DEFINE'
65 | #define TMC_UART_DEFINE(SWHW, ST, AI) _TMC_UART_DEFINE(SWHW, ST##_DRIVER_TYPE, ST, AI##_AXIS)
| ^~~~~~~~~~~~~~~~
Marlin/src/module/stepper/trinamic.cpp:328:7: note: in expansion of macro 'TMC_UART_DEFINE'
328 | TMC_UART_DEFINE(SW, Y2, Y);
| ^~~~~~~~~~~~~~~
In file included from Marlin/src/module/stepper/../../inc/MarlinConfigPre-1-axes.h:40,
from Marlin/src/module/stepper/../../inc/Conditionals-1-axes.h:32,
from Marlin/src/module/stepper/../../inc/MarlinConfigPre.h:27,
from Marlin/src/module/stepper/../../inc/MarlinConfigPre-5-post.h:24:
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:692:21: error: 'E0_SERIAL_TX_PIN' was not declared in this scope; did you mean 'Y2_SERIAL_TX_PIN'?
692 | #define __EPIN(p,q) E##p##_##q##_PIN
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:643:24: note: in definition of macro 'EVAL1'
643 | #define EVAL1(V...) V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:24: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:30: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:639:24: note: in expansion of macro 'EVAL8'
639 | #define EVAL16(V...) EVAL8(EVAL8(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:24: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:30: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:209:29: note: in expansion of macro 'THIRD'
209 | #define ___TERN(P,V...) THIRD(P,V) // If first argument has a comma, A. Else B.
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:208:29: note: in expansion of macro '___TERN'
208 | #define __TERN(T,V...) ___TERN(_CAT(_NO,T),V) // Prepend '_NO' to get '_NOT_0' or '_NOT_1'
| ^~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:207:29: note: in expansion of macro '__TERN'
207 | #define _TERN(E,V...) __TERN(_CAT(T_,E),V) // Prepend 'T_' to get 'T_0' or 'T_1'
| ^~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:203:29: note: in expansion of macro '_TERN'
203 | #define TERN(O,A,B) _TERN(_ENA_1(O),B,A) // OPTION ? 'A' : 'B'
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:1055:33: note: in expansion of macro 'TERN'
1055 | #define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
| ^~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:693:20: note: in expansion of macro '__EPIN'
693 | #define _EPIN(p,q) __EPIN(p,q)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:857:32: note: in expansion of macro '_EPIN'
857 | #define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX)
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:1055:57: note: in expansion of macro 'Y2_SERIAL_TX_PIN'
1055 | #define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
| ^
Marlin/src/module/stepper/trinamic.cpp:1056:30: note: in expansion of macro 'TMC_SW_DETAIL_ARGS'
1056 | #define TMC_SW_DETAIL(A) { TMC_SW_DETAIL_ARGS(A) }
| ^~~~~~~~~~~~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:741:3: note: in expansion of macro 'TMC_SW_DETAIL'
741 | _MAP_OP(A) \
| ^~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:745:21: note: in expansion of macro '_MAPLIST'
745 | #define __MAPLIST() _MAPLIST
| ^~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:639:30: note: in expansion of macro 'EVAL8'
639 | #define EVAL16(V...) EVAL8(EVAL8(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:745:21: note: in expansion of macro '_MAPLIST'
745 | #define __MAPLIST() _MAPLIST
| ^~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL16'
630 | #define EVAL(V...) EVAL16(V)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:745:21: note: in expansion of macro '_MAPLIST'
745 | #define __MAPLIST() _MAPLIST
| ^~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:747:26: note: in expansion of macro 'EVAL'
747 | #define MAPLIST(OP,V...) EVAL(_MAPLIST(OP,V))
| ^~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:747:31: note: in expansion of macro '_MAPLIST'
747 | #define MAPLIST(OP,V...) EVAL(_MAPLIST(OP,V))
| ^~~~~~~~
Marlin/src/module/stepper/trinamic.cpp:1057:63: note: in expansion of macro 'MAPLIST'
1057 | constexpr SanitySwSerialDetails sanity_tmc_sw_details[] = { MAPLIST(TMC_SW_DETAIL, ALL_AXIS_NAMES) };
| ^~~~~~~
Marlin/src/module/stepper/trinamic.cpp:1057:86: note: in expansion of macro 'ALL_AXIS_NAMES'
1057 | constexpr SanitySwSerialDetails sanity_tmc_sw_details[] = { MAPLIST(TMC_SW_DETAIL, ALL_AXIS_NAMES) };
| ^~~~~~~~~~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:692:21: error: 'E0_SERIAL_RX_PIN' was not declared in this scope; did you mean 'Y2_SERIAL_RX_PIN'?
692 | #define __EPIN(p,q) E##p##_##q##_PIN
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:643:24: note: in definition of macro 'EVAL1'
643 | #define EVAL1(V...) V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:24: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:30: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:639:24: note: in expansion of macro 'EVAL8'
639 | #define EVAL16(V...) EVAL8(EVAL8(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:24: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:30: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:209:29: note: in expansion of macro 'THIRD'
209 | #define ___TERN(P,V...) THIRD(P,V) // If first argument has a comma, A. Else B.
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:208:29: note: in expansion of macro '___TERN'
208 | #define __TERN(T,V...) ___TERN(_CAT(_NO,T),V) // Prepend '_NO' to get '_NOT_0' or '_NOT_1'
| ^~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:207:29: note: in expansion of macro '__TERN'
207 | #define _TERN(E,V...) __TERN(_CAT(T_,E),V) // Prepend 'T_' to get 'T_0' or 'T_1'
| ^~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:203:29: note: in expansion of macro '_TERN'
203 | #define TERN(O,A,B) _TERN(_ENA_1(O),B,A) // OPTION ? 'A' : 'B'
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:1055:81: note: in expansion of macro 'TERN'
1055 | #define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
| ^~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:693:20: note: in expansion of macro '__EPIN'
693 | #define _EPIN(p,q) __EPIN(p,q)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:860:32: note: in expansion of macro '_EPIN'
860 | #define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX)
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:1055:105: note: in expansion of macro 'Y2_SERIAL_RX_PIN'
1055 | #define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
| ^
Marlin/src/module/stepper/trinamic.cpp:1056:30: note: in expansion of macro 'TMC_SW_DETAIL_ARGS'
1056 | #define TMC_SW_DETAIL(A) { TMC_SW_DETAIL_ARGS(A) }
| ^~~~~~~~~~~~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:741:3: note: in expansion of macro 'TMC_SW_DETAIL'
741 | _MAP_OP(A) \
| ^~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:745:21: note: in expansion of macro '_MAPLIST'
745 | #define __MAPLIST() _MAPLIST
| ^~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:639:30: note: in expansion of macro 'EVAL8'
639 | #define EVAL16(V...) EVAL8(EVAL8(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:745:21: note: in expansion of macro '_MAPLIST'
745 | #define __MAPLIST() _MAPLIST
| ^~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL16'
630 | #define EVAL(V...) EVAL16(V)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:745:21: note: in expansion of macro '_MAPLIST'
745 | #define __MAPLIST() _MAPLIST
| ^~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:747:26: note: in expansion of macro 'EVAL'
747 | #define MAPLIST(OP,V...) EVAL(_MAPLIST(OP,V))
| ^~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:747:31: note: in expansion of macro '_MAPLIST'
747 | #define MAPLIST(OP,V...) EVAL(_MAPLIST(OP,V))
| ^~~~~~~~
Marlin/src/module/stepper/trinamic.cpp:1057:63: note: in expansion of macro 'MAPLIST'
1057 | constexpr SanitySwSerialDetails sanity_tmc_sw_details[] = { MAPLIST(TMC_SW_DETAIL, ALL_AXIS_NAMES) };
| ^~~~~~~
Marlin/src/module/stepper/trinamic.cpp:1057:86: note: in expansion of macro 'ALL_AXIS_NAMES'
1057 | constexpr SanitySwSerialDetails sanity_tmc_sw_details[] = { MAPLIST(TMC_SW_DETAIL, ALL_AXIS_NAMES) };
| ^~~~~~~~~~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:692:21: error: 'E0_SERIAL_TX_PIN' was not declared in this scope; did you mean 'Y2_SERIAL_TX_PIN'?
692 | #define __EPIN(p,q) E##p##_##q##_PIN
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:643:24: note: in definition of macro 'EVAL1'
643 | #define EVAL1(V...) V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:24: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:30: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:639:24: note: in expansion of macro 'EVAL8'
639 | #define EVAL16(V...) EVAL8(EVAL8(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:24: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:24: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:24: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:642:30: note: in expansion of macro 'EVAL1'
642 | #define EVAL2(V...) EVAL1(EVAL1(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:641:30: note: in expansion of macro 'EVAL2'
641 | #define EVAL4(V...) EVAL2(EVAL2(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:640:30: note: in expansion of macro 'EVAL4'
640 | #define EVAL8(V...) EVAL4(EVAL4(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:209:29: note: in expansion of macro 'THIRD'
209 | #define ___TERN(P,V...) THIRD(P,V) // If first argument has a comma, A. Else B.
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:208:29: note: in expansion of macro '___TERN'
208 | #define __TERN(T,V...) ___TERN(_CAT(_NO,T),V) // Prepend '_NO' to get '_NOT_0' or '_NOT_1'
| ^~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:207:29: note: in expansion of macro '__TERN'
207 | #define _TERN(E,V...) __TERN(_CAT(T_,E),V) // Prepend 'T_' to get 'T_0' or 'T_1'
| ^~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:203:29: note: in expansion of macro '_TERN'
203 | #define TERN(O,A,B) _TERN(_ENA_1(O),B,A) // OPTION ? 'A' : 'B'
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:1055:33: note: in expansion of macro 'TERN'
1055 | #define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
| ^~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:693:20: note: in expansion of macro '__EPIN'
693 | #define _EPIN(p,q) __EPIN(p,q)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../pins/pins_postprocess.h:857:32: note: in expansion of macro '_EPIN'
857 | #define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX)
| ^~~~~
Marlin/src/module/stepper/trinamic.cpp:1055:57: note: in expansion of macro 'Y2_SERIAL_TX_PIN'
1055 | #define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
| ^
Marlin/src/module/stepper/trinamic.cpp:1069:76: note: in expansion of macro 'TMC_SW_DETAIL_ARGS'
1069 | #define SA_NO_TMC_SW_C(A) static_assert(1 >= count_tmc_sw_serial_matches(TMC_SW_DETAIL_ARGS(A), 0, COUNT(sanity_tmc_sw_details)), TMC_SWSERIAL_CONFLICT_MSG(A));
| ^~~~~~~~~~~~~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:731:3: note: in expansion of macro 'SA_NO_TMC_SW_C'
731 | _MAP_OP(A) \
| ^~~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:735:17: note: in expansion of macro '_MAP'
735 | #define __MAP() _MAP
| ^~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:639:30: note: in expansion of macro 'EVAL8'
639 | #define EVAL16(V...) EVAL8(EVAL8(V))
| ^~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:735:17: note: in expansion of macro '_MAP'
735 | #define __MAP() _MAP
| ^~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL16'
630 | #define EVAL(V...) EVAL16(V)
| ^~~~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:735:17: note: in expansion of macro '_MAP'
735 | #define __MAP() _MAP
| ^~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:737:22: note: in expansion of macro 'EVAL'
737 | #define MAP(OP,V...) EVAL(_MAP(OP,V))
| ^~~~
Marlin/src/module/stepper/../../inc/../core/macros.h:181:22: note: in expansion of macro '_IF_1'
181 | #define _CAT(a,V...) a##V
| ^
Marlin/src/module/stepper/../../inc/../core/macros.h:737:27: note: in expansion of macro '_MAP'
737 | #define MAP(OP,V...) EVAL(_MAP(OP,V))
| ^~~~
Marlin/src/module/stepper/trinamic.cpp:1070:3: note: in expansion of macro 'MAP'
1070 | MAP(SA_NO_TMC_SW_C, ALL_AXIS_NAMES)
| ^~~
Marlin/src/module/stepper/trinamic.cpp:1070:23: note: in expansion of macro 'ALL_AXIS_NAMES'
1070 | MAP(SA_NO_TMC_SW_C, ALL_AXIS_NAMES)
| ^~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio/build/STM32G0B1RE_btt/src/src/module/stepper/trinamic.cpp.o] Error 1
=============================================================================== [FAILED] Took 31.35 seconds ===============================================================================
Environment Status Duration
--------------- -------- ------------
STM32G0B1RE_btt FAILED 00:00:31.351
========================================================================== 1 failed, 0 succeeded in 00:00:31.351 ========================================================================== |
Now i released that Z axis was configured incorrectly and I don't see any options in configuration files that would allow to use MIN end-stop pins as MAX end-stop |
4f52bae
to
17c4846
Compare
After reconsidering and starting to work on the cnc, I came to the conclusion that there was no point in adding this configuration to the repository. Marlin is designed for 3d printers rather than CNC and bringing it down to a usable level would require too many changes and independent PRs - for example:
In addition, a mesh leveling function with the ability to set measurement points via the printer screen so that only the machining element is measured would be useful. And honestly I don't care so much to wait a few months to fix all the details. |
Marlin should, but I understand if that it may not work correctly outside of the usual 3D printer operations/kinematics. Hopefully we can get the rest fixed up for you! |
I have adapted the configuration files for the use of BTT E3 SKR MINI V3.0 in a popular CNC DIY project.
No unusual changes have been made to the config files but the most important is the change of drivers pinout allowing the use of unused E0 stepper IC for the second Y motor.