Hello !
Thank you for sharing the code "multiaxis"
I am trying to compile Marlin for an independent rotary axis controlled by a stepstick on the second extruder. I was stuck at the compilation stage. I can't fix this error:
In file included from Marlin\src\inc/../HAL/./LPC1768/HAL.h:42,
from Marlin\src\inc/../HAL/HAL.h:30,
from Marlin\src\inc/MarlinConfig.h:31,
from Marlin\src\MarlinCore.h:24,
from Marlin\src\MarlinCore.cpp:31:
Marlin\src\MarlinCore.cpp: In function 'void enable_all_steppers()':
Marlin\src\module/stepper/indirection.h:791:49: error: 'I_ENABLE_ON' was not declared in this scope; did you mean 'Z_ENABLE_ON'?
791 | #define ENABLE_STEPPER_I() I_ENABLE_WRITE( I_ENABLE_ON)
| ^~~
Marlin\src\inc/../HAL/./LPC1768/fastio.h:52:53: note: in definition of macro 'WRITE_PIN'
52 | #define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V)
| ^
Marlin\src\inc/../HAL/./LPC1768/fastio.h:93:31: note: in expansion of macro '_WRITE'
93 | #define WRITE(IO,V) _WRITE(IO,V)
| ^~
Marlin\src\module/stepper/indirection.h:212:35: note: in expansion of macro 'WRITE'
212 | #define I_ENABLE_WRITE(STATE) WRITE(I_ENABLE_PIN,STATE)
| ^~~~~
Marlin\src\module/stepper/indirection.h:791:33: note: in expansion of macro 'I_ENABLE_WRITE'
791 | #define ENABLE_STEPPER_I() I_ENABLE_WRITE( I_ENABLE_ON)
| ^~~~~~
Marlin\src\module/stepper/indirection.h:995:54: note: in expansion of macro 'ENABLE_STEPPER_I'
995 | #define ENABLE_AXIS_I() if (SHOULD_ENABLE(i)) { ENABLE_STEPPER_I(); AFTER_CHANGE(i, true); }
| ^~~~
Marlin\src\MarlinCore.cpp:317:3: note: in expansion of macro 'ENABLE_AXIS_I'
317 | ENABLE_AXIS_I(); // Marlin 6-axis support by DerAndere (https://github.com/DerAndere1/Marlin/wiki)
| ^~~~~
Marlin\src\MarlinCore.cpp: In function 'void disable_all_steppers()':
Marlin\src\module/stepper/indirection.h:798:49: error: 'I_ENABLE_ON' was not declared in this scope; did you mean 'Z_ENABLE_ON'?
798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON)
| ^~~
Marlin\src\inc/../HAL/./LPC1768/fastio.h:52:53: note: in definition of macro 'WRITE_PIN'
52 | #define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V)
| ^
Marlin\src\inc/../HAL/./LPC1768/fastio.h:93:31: note: in expansion of macro '_WRITE'
93 | #define WRITE(IO,V) _WRITE(IO,V)
| ^~
Marlin\src\module/stepper/indirection.h:212:35: note: in expansion of macro 'WRITE'
212 | #define I_ENABLE_WRITE(STATE) WRITE(I_ENABLE_PIN,STATE)
| ^~~~~
Marlin\src\module/stepper/indirection.h:798:33: note: in expansion of macro 'I_ENABLE_WRITE'
798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON)
| ^~~~~~
Marlin\src\module/stepper/indirection.h:996:53: note: in expansion of macro 'DISABLE_STEPPER_I'
996 | #define DISABLE_AXIS_I() if (SHOULD_DISABLE(i)) { DISABLE_STEPPER_I(); AFTER_CHANGE(i, false); set_axis_untrusted(I_AXIS); }
| ^~~~~
Marlin\src\MarlinCore.cpp:341:3: note: in expansion of macro 'DISABLE_AXIS_I'
341 | DISABLE_AXIS_I();
| ^~~~~~
Marlin\src\MarlinCore.cpp: In function 'void manage_inactivity(bool)':
Marlin\src\module/stepper/indirection.h:798:49: error: 'I_ENABLE_ON' was not declared in this scope; did you mean 'Z_ENABLE_ON'?
798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON)
| ^~~
Marlin\src\inc/../HAL/./LPC1768/fastio.h:52:53: note: in definition of macro 'WRITE_PIN'
52 | #define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V)
| ^
Marlin\src\inc/../HAL/./LPC1768/fastio.h:93:31: note: in expansion of macro '_WRITE'
93 | #define WRITE(IO,V) _WRITE(IO,V)
| ^~
Marlin\src\module/stepper/indirection.h:212:35: note: in expansion of macro 'WRITE'
212 | #define I_ENABLE_WRITE(STATE) WRITE(I_ENABLE_PIN,STATE)
| ^~~~~
Marlin\src\module/stepper/indirection.h:798:33: note: in expansion of macro 'I_ENABLE_WRITE'
798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON)
| ^~~~~~
Marlin\src\module/stepper/indirection.h:996:53: note: in expansion of macro 'DISABLE_STEPPER_I'
996 | #define DISABLE_AXIS_I() if (SHOULD_DISABLE(i)) { DISABLE_STEPPER_I(); AFTER_CHANGE(i, false); set_axis_untrusted(I_AXIS); }
| ^~~~~
Marlin\src\MarlinCore.cpp:462:42: note: in expansion of macro 'DISABLE_AXIS_I'
462 | if (ENABLED(DISABLE_INACTIVE_I)) DISABLE_AXIS_I();
| ^~~~~~
*** [.pio\build\LPC1768\src\src\MarlinCore.cpp.o] Error 1
I am asking for help and correction, or tips on how to make the compilation successful.
Regards and I wish you a lot of health!!!
PS
My coreXY printer has a removable extruder. Now, functionally, without replacing the firmware, I can have:
PenPlotter
Laser engraver
I'd like to add a tangential knife - and for that, I need a rotating A-axis
Hello ! Thank you for sharing the code "multiaxis" I am trying to compile Marlin for an independent rotary axis controlled by a stepstick on the second extruder. I was stuck at the compilation stage. I can't fix this error:
In file included from Marlin\src\inc/../HAL/./LPC1768/HAL.h:42, from Marlin\src\inc/../HAL/HAL.h:30, from Marlin\src\inc/MarlinConfig.h:31, from Marlin\src\MarlinCore.h:24, from Marlin\src\MarlinCore.cpp:31: Marlin\src\MarlinCore.cpp: In function 'void enable_all_steppers()': Marlin\src\module/stepper/indirection.h:791:49: error: 'I_ENABLE_ON' was not declared in this scope; did you mean 'Z_ENABLE_ON'? 791 | #define ENABLE_STEPPER_I() I_ENABLE_WRITE( I_ENABLE_ON) | ^
~~Marlin\src\inc/../HAL/./LPC1768/fastio.h:52:53: note: in definition of macro 'WRITE_PIN' 52 | #define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V) | ^ Marlin\src\inc/../HAL/./LPC1768/fastio.h:93:31: note: in expansion of macro '_WRITE' 93 | #define WRITE(IO,V) _WRITE(IO,V) | ^~Marlin\src\module/stepper/indirection.h:212:35: note: in expansion of macro 'WRITE' 212 | #define I_ENABLE_WRITE(STATE) WRITE(I_ENABLE_PIN,STATE) | ^~~~~ Marlin\src\module/stepper/indirection.h:791:33: note: in expansion of macro 'I_ENABLE_WRITE' 791 | #define ENABLE_STEPPER_I() I_ENABLE_WRITE( I_ENABLE_ON) | ^~~~~~ Marlin\src\module/stepper/indirection.h:995:54: note: in expansion of macro 'ENABLE_STEPPER_I' 995 | #define ENABLE_AXIS_I() if (SHOULD_ENABLE(i)) { ENABLE_STEPPER_I(); AFTER_CHANGE(i, true); } | ^~~~Marlin\src\MarlinCore.cpp:317:3: note: in expansion of macro 'ENABLE_AXIS_I' 317 | ENABLE_AXIS_I(); // Marlin 6-axis support by DerAndere (https://github.com/DerAndere1/Marlin/wiki) | ^~~~~ Marlin\src\MarlinCore.cpp: In function 'void disable_all_steppers()': Marlin\src\module/stepper/indirection.h:798:49: error: 'I_ENABLE_ON' was not declared in this scope; did you mean 'Z_ENABLE_ON'? 798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON) | ^~~Marlin\src\inc/../HAL/./LPC1768/fastio.h:52:53: note: in definition of macro 'WRITE_PIN' 52 | #define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V) | ^ Marlin\src\inc/../HAL/./LPC1768/fastio.h:93:31: note: in expansion of macro '_WRITE' 93 | #define WRITE(IO,V) _WRITE(IO,V) | ^~Marlin\src\module/stepper/indirection.h:212:35: note: in expansion of macro 'WRITE' 212 | #define I_ENABLE_WRITE(STATE) WRITE(I_ENABLE_PIN,STATE) | ^~~~~ Marlin\src\module/stepper/indirection.h:798:33: note: in expansion of macro 'I_ENABLE_WRITE' 798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON) | ^~~~~~ Marlin\src\module/stepper/indirection.h:996:53: note: in expansion of macro 'DISABLE_STEPPER_I' 996 | #define DISABLE_AXIS_I() if (SHOULD_DISABLE(i)) { DISABLE_STEPPER_I(); AFTER_CHANGE(i, false); set_axis_untrusted(I_AXIS); } | ^~~~~ Marlin\src\MarlinCore.cpp:341:3: note: in expansion of macro 'DISABLE_AXIS_I' 341 | DISABLE_AXIS_I(); | ^~~~~~ Marlin\src\MarlinCore.cpp: In function 'void manage_inactivity(bool)': Marlin\src\module/stepper/indirection.h:798:49: error: 'I_ENABLE_ON' was not declared in this scope; did you mean 'Z_ENABLE_ON'? 798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON) | ^~~Marlin\src\inc/../HAL/./LPC1768/fastio.h:52:53: note: in definition of macro 'WRITE_PIN' 52 | #define WRITE_PIN(IO,V) LPC176x::gpio_set(IO, V) | ^ Marlin\src\inc/../HAL/./LPC1768/fastio.h:93:31: note: in expansion of macro '_WRITE' 93 | #define WRITE(IO,V) _WRITE(IO,V) | ^~Marlin\src\module/stepper/indirection.h:212:35: note: in expansion of macro 'WRITE' 212 | #define I_ENABLE_WRITE(STATE) WRITE(I_ENABLE_PIN,STATE) | ^~~~~ Marlin\src\module/stepper/indirection.h:798:33: note: in expansion of macro 'I_ENABLE_WRITE' 798 | #define DISABLE_STEPPER_I() I_ENABLE_WRITE(!I_ENABLE_ON) | ^~~~~~ Marlin\src\module/stepper/indirection.h:996:53: note: in expansion of macro 'DISABLE_STEPPER_I' 996 | #define DISABLE_AXIS_I() if (SHOULD_DISABLE(i)) { DISABLE_STEPPER_I(); AFTER_CHANGE(i, false); set_axis_untrusted(I_AXIS); } | ^~~~~ Marlin\src\MarlinCore.cpp:462:42: note: in expansion of macro 'DISABLE_AXIS_I' 462 | if (ENABLED(DISABLE_INACTIVE_I)) DISABLE_AXIS_I(); | ^~~~~~ *** [.pio\build\LPC1768\src\src\MarlinCore.cpp.o] Error 1I am sending my 3 configuration files CONFIG.zip
I am asking for help and correction, or tips on how to make the compilation successful.
Regards and I wish you a lot of health!!!
PS My coreXY printer has a removable extruder. Now, functionally, without replacing the firmware, I can have: PenPlotter Laser engraver I'd like to add a tangential knife - and for that, I need a rotating A-axis