Closed Lazer-Khat closed 1 year ago
error: static assertion failed: HEATER_0_MAXTEMP (315) is too high for thermistor_1.h with HOTEND_OVERSHOOT=20.
Reduce your HEATER_0_MAXTEMP
since it's higher than the max temperature for your thermistor.
This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:
That seemed to work! New question: which environment should I use for a 4.2.7 board?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
PS C:\Users\Willi\Downloads\Marlin-bugfix-2.1.x> platformio run --silent -e STM32F103RE_creality Marlin\src\MarlinCore.cpp: In function 'void manage_inactivity(bool)': Marlin\src\MarlinCore.cpp:677:20: warning: unused variable 'e_stepper' [-Wunused-variable] 677 | const int8_t e_stepper = TERN(HAS_SWITCHING_EXTRUDER, active_extruder >> 1, active_extruder); | ^
~~~~ In file included from Marlin\src\module../inc/MarlinConfigPre.h:37, from Marlin\src\module../inc/MarlinConfig.h:28, from Marlin\src\module../MarlinCore.h:24, from Marlin\src\module\temperature.cpp:30: Marlin\src\module\temperature.cpp:301:14: error: static assertion failed: HEATER_0_MAXTEMP (315) is too high for thermistor_1.h with HOTEND_OVERSHOOT=20. 301 | S >= 998 || M <= _MAX(TT_NAME(S)[0].celsius, TT_NAME(S)[COUNT(TT_NAME(S)) - 1].celsius) - HOTEND_OVERSHOOT, \ Marlin\src\module../inc/../core/macros.h:632:24: note: in definition of macro 'EVAL1' 632 | #define EVAL1(V...) V | ^ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:30: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:629:24: note: in expansion of macro 'EVAL4' 629 | #define EVAL8(V...) EVAL4(EVAL4(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:30: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:629:30: note: in expansion of macro 'EVAL4' 629 | #define EVAL8(V...) EVAL4(EVAL4(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:628:24: note: in expansion of macro 'EVAL8' 628 | #define EVAL16(V...) EVAL8(EVAL8(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:30: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:629:24: note: in expansion of macro 'EVAL4' 629 | #define EVAL8(V...) EVAL4(EVAL4(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:24: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:24: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:631:30: note: in expansion of macro 'EVAL1' 631 | #define EVAL2(V...) EVAL1(EVAL1(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:630:30: note: in expansion of macro 'EVAL2' 630 | #define EVAL4(V...) EVAL2(EVAL2(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:629:30: note: in expansion of macro 'EVAL4' 629 | #define EVAL8(V...) EVAL4(EVAL4(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:628:30: note: in expansion of macro 'EVAL8' 628 | #define EVAL16(V...) EVAL8(EVAL8(V)) | ^~~~~ Marlin\src\module../inc/../core/macros.h:619:24: note: in expansion of macro 'EVAL16' 619 | #define EVAL EVAL16 | ^~Marlin\src\module../inc/../core/macros.h:609:26: note: in expansion of macro 'CHECKMAXTEMP' 609 | #define THIRD(a,b,c,...) c | ^ Marlin\src\module../inc/../core/macros.h:207:29: note: in expansion of macro 'THIRD' 207 | #define TERN(P,V...) THIRD(P,V) // If first argument has a comma, A. Else B. | ^~~~~ Marlin\src\module../inc/../core/macros.h:206:29: note: in expansion of macro 'TERN' 206 | #define TERN(T,V...) ___TERN(_CAT(_NO,T),V) // Prepend '_NO' to get '_NOT_0' or '_NOT_1' | ^~~ Marlin\src\module../inc/../core/macros.h:205:29: note: in expansion of macro 'TERN' 205 | #define _TERN(E,V...) __TERN(CAT(T,E),V) // Prepend 'T_' to get 'T_0' or 'T_1' | ^~Marlin\src\module../inc/../core/macros.h:201:29: note: in expansion of macro '_TERN' 201 | #define TERN(O,A,B) _TERN(_ENA_1(O),B,A) // OPTION ? 'A' : 'B' | ^~~~~ Marlin\src\module\temperature.cpp:303:28: note: in expansion of macro 'TERN' 303 | #define CHECK_MAXTEMP(N) TERN(TEMPSENSOR##N##_IS_THERMISTOR, CHECKMAXTEMP, CODE0)(N, HEATER##N##_MAXTEMP, TEMPSENSOR##N) | ^~~~ Marlin\src\module../inc/../core/macros.h:663:3: note: in expansion of macro 'CHECK_MAXTEMP' 663 | _RPT_OP(_RPT_I) \ | ^~~ Marlin\src\module../inc/../core/macros.h:678:38: note: in expansion of macro '_REPEAT' 678 | #define REPEAT_S(S,N,OP) EVAL(_REPEAT(S,SUB##S(N),OP)) | ^~~ Marlin\src\module../inc/../core/macros.h:679:33: note: in expansion of macro 'REPEAT_S' 679 | #define REPEAT(N,OP) REPEAT_S(0,N,OP) | ^~~~ Marlin\src\module\temperature.cpp:304:3: note: in expansion of macro 'REPEAT' 304 | REPEAT(HOTENDS, CHECK_MAXTEMP) | ^~*** [.pio\build\STM32F103RE_creality\src\src\module\temperature.cpp.o] Error 1 ================================================================================================== [FAILED] Took 80.68 seconds ==================================================================================================Environment Status Duration
STM32F103RE_creality FAILED 00:01:20.676
Bug Timeline
No response
Expected behavior
Firmware built
Actual behavior
*** [.pio\build\STM32F103RE_creality\src\src\module\temperature.cpp.o] Error 1
Steps to Reproduce
No response
Version of Marlin Firmware
2.1.x bigfix
Printer model
Ender 3 Pro
Electronics
4.2.7 board, Sprite Extruder Pro w/ CR Touch
Add-ons
Dual Z Belt
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
No response