Closed 3DSwed closed 1 year ago
error: 'DEFAULT_EJERK' was not declared in this scope
Problem: You disabled DEFAULT_EJERK
which causes this error.
Solution: Enable DEFAULT_EJERK
.
error: 'DEFAULT_Kp' was not declared in this scope
Problem: You enabled PID_PARAMS_PER_HOTEND
, but disabled the DEFAULT_K*_LIST
values (and you only have a single hotend, so this define/feature doesn't apply).
Solution: Disable PID_PARAMS_PER_HOTEND
:
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:
After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.
Thank you so mutch that solved my misstakes. Now i can take the next step and try the 2208 Smart shapers i got. I did post on two of the above sugested as well but no answers...
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
Get error message as follow, dont now whats wrong. At first got the same type of error on pid for hotend. Turn that off to try and get a working build. Now the folling error comes up and i have also turned bed pid off but no changes. Been scratching my head for a couple of days now... last i looked at was if the chosing of tempsensor had any to do with it. No change. Turn Bed pid off as well know next issue with Ejerk in same module... I dont know if it´s me or a bug, but saw another thread that got issue withe the same module.
Compiling .pio\build\LPC1768\src\src\module\temperature.cpp.o In file included from Marlin\src\module../inc/MarlinConfig.h:47, from Marlin\src\module\settings.h:28, from Marlin\src\module\settings.cpp:46: Marlin\src\module\settings.cpp: In static member function 'static bool MarlinSettings::save()': Marlin\src\module\settings.cpp:795:70: error: 'DEFAULT_EJERK' was not declared in this scope 795 | const xyze_pos_t planner_max_jerk = LOGICAL_AXIS_ARRAY(float(DEFAULT_EJERK), 10, 10, 0.4, 0.4, 0.4, 0.4, 0.4, 0.4, 0.4); | ^
~~~~ Marlin\src\module../inc/../core/types.h:78:28: note: in definition of macro 'LIST_ITEM_E' 78 | #define LIST_ITEM_E(N) , N | ^ Marlin\src\module../inc/../core/types.h:58:38: note: in expansion of macro 'LOGICAL_AXIS_LIST' 58 | #define LOGICAL_AXIS_ARRAY(E,V...) { LOGICAL_AXIS_LIST(E,V) } | ^~~~~ Marlin\src\module\settings.cpp:795:45: note: in expansion of macro 'LOGICAL_AXIS_ARRAY' 795 | const xyze_pos_t planner_max_jerk = LOGICAL_AXIS_ARRAY(float(DEFAULT_EJERK), 10, 10, 0.4, 0.4, 0.4, 0.4, 0.4, 0.4, 0.4); | ^~~~~~ In file included from Marlin\src\module../inc/MarlinConfigPre.h:37, from Marlin\src\module../inc/MarlinConfig.h:28, from Marlin\src\module\settings.h:28, from Marlin\src\module\settings.cpp:46: Marlin\src\module\settings.cpp: In static member function 'static void MarlinSettings::reset()': Marlin\src\module\settings.cpp:3131:29: error: 'DEFAULT_Kp' was not declared in this scope 3131 | ARRAY_BY_HOTENDS1(DEFAULT_Kp) | ^~~~~~ Marlin\src\module../inc/../core/macros.h:366:24: note: in definition of macro 'LIST_1' 366 | #define LIST_1( A,...) A | ^ Marlin\src\module../inc/../core/macros.h:371:23: note: in expansion of macro '_LIST_N' 371 | #define LIST_N_1(N,K) _LIST_N(N,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K) | ^~~ Marlin\src\module../inc/../core/macros.h:373:27: note: in expansion of macro 'LIST_N_1' 373 | #define ARRAY_N_1(N,K) { LIST_N_1(N,K) } | ^~~~ Marlin\src\module../inc/Conditionals_LCD.h:1032:31: note: in expansion of macro 'ARRAY_N_1' 1032 | #define ARRAY_BY_HOTENDS1(v1) ARRAY_N_1(HOTENDS, v1) | ^~~~~ Marlin\src\module\settings.cpp:3131:11: note: in expansion of macro 'ARRAY_BY_HOTENDS1' 3131 | ARRAY_BY_HOTENDS1(DEFAULT_Kp) | ^~~~~ Marlin\src\module\settings.cpp:3137:29: error: 'DEFAULT_Ki' was not declared in this scope 3137 | ARRAY_BY_HOTENDS1(DEFAULT_Ki) | ^~~~~~ Marlin\src\module../inc/../core/macros.h:366:24: note: in definition of macro 'LIST_1' 366 | #define LIST_1( A,...) A | ^ Marlin\src\module../inc/../core/macros.h:371:23: note: in expansion of macro '_LIST_N' 371 | #define LIST_N_1(N,K) _LIST_N(N,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K) | ^~~ Marlin\src\module../inc/../core/macros.h:373:27: note: in expansion of macro 'LIST_N_1' 373 | #define ARRAY_N_1(N,K) { LIST_N_1(N,K) } | ^~~~ Marlin\src\module../inc/Conditionals_LCD.h:1032:31: note: in expansion of macro 'ARRAY_N_1' 1032 | #define ARRAY_BY_HOTENDS1(v1) ARRAY_N_1(HOTENDS, v1) | ^~~~~ Marlin\src\module\settings.cpp:3137:11: note: in expansion of macro 'ARRAY_BY_HOTENDS1' 3137 | ARRAY_BY_HOTENDS1(DEFAULT_Ki) | ^~~~~ Marlin\src\module\settings.cpp:3143:29: error: 'DEFAULT_Kd' was not declared in this scope 3143 | ARRAY_BY_HOTENDS1(DEFAULT_Kd) | ^~~~~~ Marlin\src\module../inc/../core/macros.h:366:24: note: in definition of macro 'LIST_1' | ^ Marlin\src\module../inc/../core/macros.h:371:23: note: in expansion of macro '_LIST_N' 371 | #define LIST_N_1(N,K) _LIST_N(N,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K,K) | ^~~ Marlin\src\module../inc/../core/macros.h:373:27: note: in expansion of macro 'LIST_N_1' 373 | #define ARRAY_N_1(N,K) { LIST_N_1(N,K) } | ^~~~ Marlin\src\module../inc/Conditionals_LCD.h:1032:31: note: in expansion of macro 'ARRAY_N_1' 1032 | #define ARRAY_BY_HOTENDS1(v1) ARRAY_N_1(HOTENDS, v1) | ^~~~~ Marlin\src\module\settings.cpp:3143:11: note: in expansion of macro 'ARRAY_BY_HOTENDS1' 3143 | ARRAY_BY_HOTENDS1(DEFAULT_Kd) | ^~~~~ *** [.pio\build\LPC1768\src\src\module\settings.cpp.o] Error 1Bug Timeline
3 Days
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
No response
Version of Marlin Firmware
2.1.x Bugfix (latest (2.1.2))
Printer model
Home made
Electronics
Re_Arm LPC1768
Add-ons
No response
Bed Leveling
UBL Bilinear mesh
Your Slicer
Cura
Host Software
SD Card (headless)
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Configuration_adv.zip