M42 for hotend and heat bed pins July 27, 2020 11:51AM |
Registered: 7 years ago Posts: 11 |
Re: M42 for hotend and heat bed pins July 27, 2020 02:23PM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: M42 for hotend and heat bed pins July 28, 2020 08:24AM |
Registered: 7 years ago Posts: 11 |
Quote
Dust
In a any recent version of marlin simply define
#define RAMPS_D8_PIN -1
#define RAMPS_D9_PIN -1
#define RAMPS_D10_PIN -1
In your Configuration.h
then marlin will not use those pins and they are unprotected
Once they are unprotected you can use M42 P8 S255
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:40:0, from Marlin\src\HAL\AVR\HAL_SPI.cpp:34: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1553:4: error: #error "HEATER_0_PIN not defined for this board." #error "HEATER_0_PIN not defined for this board." ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:40:0, from Marlin\src\HAL\AVR\HAL.cpp:25: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1553:4: error: #error "HEATER_0_PIN not defined for this board." #error "HEATER_0_PIN not defined for this board." ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:40:0, from Marlin\src\HAL\AVR\MarlinSerial.cpp:39: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1553:4: error: #error "HEATER_0_PIN not defined for this board." #error "HEATER_0_PIN not defined for this board." ^ In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:40:0, from Marlin\src\HAL\AVR\Servo.cpp:56: Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1553:4: error: #error "HEATER_0_PIN not defined for this board." #error "HEATER_0_PIN not defined for this board." ^ *** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o] Error 1 *** [.pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o] Error 1 *** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o] Error 1 *** [.pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o] Error 1 ================================================================================================== [FAILED] Took 13.61 seconds ==================================================================================================
Re: M42 for hotend and heat bed pins July 28, 2020 09:08AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: M42 for hotend and heat bed pins July 29, 2020 08:13AM |
Registered: 7 years ago Posts: 11 |
In file included from Marlin/src/module/thermistor/../../inc/../HAL/./AVR/HAL.h:23:0, from Marlin/src/module/thermistor/../../inc/../HAL/HAL.h:26, from Marlin/src/module/thermistor/../../inc/MarlinConfig.h:30, from Marlin/src/module/thermistor/thermistors.h:24, from Marlin/src/module/temperature.h:28, from Marlin/src/module/temperature.cpp:27: Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:76:41: error: pasting "DIO" and "-" does not give a valid preprocessing token #define _WRITE(IO,V) do{ if (&(DIO ## IO ## _RPORT) < (uint8_t*)0x100) _WRITE_NC(IO,V); else _WRITE_C(IO,V); }while(0) ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:96:31: note: in expansion of macro '_WRITE' #define WRITE(IO,V) _WRITE(IO,V) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1666:28: note: in expansion of macro 'WRITE' #define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1691:29: note: in expansion of macro 'WRITE_HEATER_0P' #define WRITE_HEATER_0(v) WRITE_HEATER_0P(v) ^ Marlin/src/module/temperature.cpp:2101:5: note: in expansion of macro 'WRITE_HEATER_0' WRITE_HEATER_##N(LOW); \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:459:3: note: in expansion of macro 'DISABLE_HEATER' _RPT_OP(_RPT_I) \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:474:38: note: in expansion of macro '_REPEAT' #define REPEAT_S(S,N,OP) EVAL(_REPEAT(S,SUB##S(N),OP)) ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:475:33: note: in expansion of macro 'REPEAT_S' #define REPEAT(N,OP) REPEAT_S(0,N,OP) ^ Marlin/src/module/temperature.cpp:2105:5: note: in expansion of macro 'REPEAT' REPEAT(HOTENDS, DISABLE_HEATER); ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:66:14: error: pasting "DIO" and "-" does not give a valid preprocessing token if (V) SBI(DIO ## IO ## _WPORT, DIO ## IO ## _PIN); \ ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:76:81: note: in expansion of macro '_WRITE_NC' #define _WRITE(IO,V) do{ if (&(DIO ## IO ## _RPORT) < (uint8_t*)0x100) _WRITE_NC(IO,V); else _WRITE_C(IO,V); }while(0) ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:96:31: note: in expansion of macro '_WRITE' #define WRITE(IO,V) _WRITE(IO,V) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1666:28: note: in expansion of macro 'WRITE' #define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1691:29: note: in expansion of macro 'WRITE_HEATER_0P' #define WRITE_HEATER_0(v) WRITE_HEATER_0P(v) ^ Marlin/src/module/temperature.cpp:2101:5: note: in expansion of macro 'WRITE_HEATER_0' WRITE_HEATER_##N(LOW); \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:459:3: note: in expansion of macro 'DISABLE_HEATER' _RPT_OP(_RPT_I) \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:474:38: note: in expansion of macro '_REPEAT' #define REPEAT_S(S,N,OP) EVAL(_REPEAT(S,SUB##S(N),OP)) ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:475:33: note: in expansion of macro 'REPEAT_S' #define REPEAT(N,OP) REPEAT_S(0,N,OP) ^ Marlin/src/module/temperature.cpp:2105:5: note: in expansion of macro 'REPEAT' REPEAT(HOTENDS, DISABLE_HEATER); ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:66:35: error: pasting "DIO" and "-" does not give a valid preprocessing token if (V) SBI(DIO ## IO ## _WPORT, DIO ## IO ## _PIN); \ ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:76:81: note: in expansion of macro '_WRITE_NC' #define _WRITE(IO,V) do{ if (&(DIO ## IO ## _RPORT) < (uint8_t*)0x100) _WRITE_NC(IO,V); else _WRITE_C(IO,V); }while(0) ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:96:31: note: in expansion of macro '_WRITE' #define WRITE(IO,V) _WRITE(IO,V) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1666:28: note: in expansion of macro 'WRITE' #define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1691:29: note: in expansion of macro 'WRITE_HEATER_0P' #define WRITE_HEATER_0(v) WRITE_HEATER_0P(v) ^ Marlin/src/module/temperature.cpp:2101:5: note: in expansion of macro 'WRITE_HEATER_0' WRITE_HEATER_##N(LOW); \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:459:3: note: in expansion of macro 'DISABLE_HEATER' _RPT_OP(_RPT_I) \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:474:38: note: in expansion of macro '_REPEAT' #define REPEAT_S(S,N,OP) EVAL(_REPEAT(S,SUB##S(N),OP)) ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:475:33: note: in expansion of macro 'REPEAT_S' #define REPEAT(N,OP) REPEAT_S(0,N,OP) ^ Marlin/src/module/temperature.cpp:2105:5: note: in expansion of macro 'REPEAT' REPEAT(HOTENDS, DISABLE_HEATER); ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:67:14: error: pasting "DIO" and "-" does not give a valid preprocessing token else CBI(DIO ## IO ## _WPORT, DIO ## IO ## _PIN); \ ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:76:81: note: in expansion of macro '_WRITE_NC' #define _WRITE(IO,V) do{ if (&(DIO ## IO ## _RPORT) < (uint8_t*)0x100) _WRITE_NC(IO,V); else _WRITE_C(IO,V); }while(0) ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:96:31: note: in expansion of macro '_WRITE' #define WRITE(IO,V) _WRITE(IO,V) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1666:28: note: in expansion of macro 'WRITE' #define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1691:29: note: in expansion of macro 'WRITE_HEATER_0P' #define WRITE_HEATER_0(v) WRITE_HEATER_0P(v) ^ Marlin/src/module/temperature.cpp:2101:5: note: in expansion of macro 'WRITE_HEATER_0' WRITE_HEATER_##N(LOW); \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:459:3: note: in expansion of macro 'DISABLE_HEATER' _RPT_OP(_RPT_I) \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:474:38: note: in expansion of macro '_REPEAT' #define REPEAT_S(S,N,OP) EVAL(_REPEAT(S,SUB##S(N),OP)) ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:475:33: note: in expansion of macro 'REPEAT_S' #define REPEAT(N,OP) REPEAT_S(0,N,OP) ^ Marlin/src/module/temperature.cpp:2105:5: note: in expansion of macro 'REPEAT' REPEAT(HOTENDS, DISABLE_HEATER); ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:67:35: error: pasting "DIO" and "-" does not give a valid preprocessing token else CBI(DIO ## IO ## _WPORT, DIO ## IO ## _PIN); \ ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:76:81: note: in expansion of macro '_WRITE_NC' #define _WRITE(IO,V) do{ if (&(DIO ## IO ## _RPORT) < (uint8_t*)0x100) _WRITE_NC(IO,V); else _WRITE_C(IO,V); }while(0) ^ Marlin/src/module/thermistor/../../inc/../HAL/./AVR/fastio.h:96:31: note: in expansion of macro '_WRITE' #define WRITE(IO,V) _WRITE(IO,V) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1666:28: note: in expansion of macro 'WRITE' #define WRITE_HEATER_0P(v) WRITE(HEATER_0_PIN, (v) ^ HEATER_0_INVERTING) ^ Marlin/src/module/thermistor/../../inc/Conditionals_post.h:1691:29: note: in expansion of macro 'WRITE_HEATER_0P' #define WRITE_HEATER_0(v) WRITE_HEATER_0P(v) ^ Marlin/src/module/temperature.cpp:2101:5: note: in expansion of macro 'WRITE_HEATER_0' WRITE_HEATER_##N(LOW); \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:459:3: note: in expansion of macro 'DISABLE_HEATER' _RPT_OP(_RPT_I) \ ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:474:38: note: in expansion of macro '_REPEAT' #define REPEAT_S(S,N,OP) EVAL(_REPEAT(S,SUB##S(N),OP)) ^ Marlin/src/module/thermistor/../../inc/../core/macros.h:475:33: note: in expansion of macro 'REPEAT_S' #define REPEAT(N,OP) REPEAT_S(0,N,OP) ^ Marlin/src/module/temperature.cpp:2105:5: note: in expansion of macro 'REPEAT' REPEAT(HOTENDS, DISABLE_HEATER); ^ compilation terminated due to -fmax-errors=5. *** [.pio/build/mega2560/src/src/module/temperature.cpp.o] Error 1 =============================================================== [FAILED] Took 91.96 seconds ===============================================================
Re: M42 for hotend and heat bed pins July 29, 2020 01:13PM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: M42 for hotend and heat bed pins July 29, 2020 06:04PM |
Registered: 7 years ago Posts: 11 |
Re: M42 for hotend and heat bed pins July 29, 2020 11:20PM |
Admin Registered: 13 years ago Posts: 7,000 |
Extruder + Heizbett Temperaturanzeige 0 in Repetier July 15, 2021 07:00AM |
Registered: 9 years ago Posts: 44 |