Welcome! Log In Create A New Profile

Advanced

Manual mesh bed levelling

Posted by mirko86 
Manual mesh bed levelling
April 04, 2022 11:11PM
Hi smiling smiley

No i have new issues with manual mesh bed levelling.eye popping smiley

I define these rows



#define PROBE_MANUALLY
#define MESH_BED_LEVELING
#define ENABLE_LEVELING_AFTER_G28
#define MESH_INSET 15
#define GRID_MAX_POINTS_X 4

And it says -


In file included from Marlin\src\MarlinCore.cpp:174:0:
Marlin\src\feature/bedlevel/bedlevel.h:62:47: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
Marlin\src\feature/bedlevel/bedlevel.h:62:47: note: suggested alternative: 'GRID_MAX_POINTS_X'
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
^~~~~~Compiling .pio\build\mega2560\src\src\feature\powerloss.cpp.o
~~~~~~~~~~~
GRID_MAX_POINTS_X
In file included from Marlin\src\feature/bedlevel/bedlevel.h:69:0,
from Marlin\src\MarlinCore.cpp:174:
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:44:44: error: 'GRID_MAX_POINTS_Y' was not declared in
this scope
z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y],
^~~~~~~~~~~~~~~~~
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:44:44: note: suggested alternative: 'GRID_MAX_POINTS_X'
z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y],
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:46:30: error: 'GRID_MAX_POINTS_Y' was not declared in
this scope
index_to_ypos[GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:46:30: note: suggested alternative: 'GRID_MAX_POINTS_X'
index_to_ypos[GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
In file included from Marlin\src\inc/MarlinConfigPre.h:37:0,
from Marlin\src\inc/MarlinConfig.h:28,
from Marlin\src\MarlinCore.h:24,
from Marlin\src\MarlinCore.cpp:31:
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h: In static member function 'static bool mesh_bed_leveling::has_mesh()':
Marlin\src\inc/Conditionals_LCD.h:1116:69: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^
Marlin\src\inc/../core/macros.h:373:58: note: in definition of macro 'LOOP_S_L_N'
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
^
Marlin\src\inc/Conditionals_LCD.h:1116:57: note: in expansion of macro 'LOOP_L_N'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^~~~~~~~
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:55:5: note: in expansion of macro 'GRID_LOOP'
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~~
Marlin\src\inc/Conditionals_LCD.h:1116:69: note: suggested alternative: 'GRID_MAX_POINTS_X'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^
Marlin\src\inc/../core/macros.h:373:58: note: in definition of macro 'LOOP_S_L_N'
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
^
Marlin\src\inc/Conditionals_LCD.h:1116:57: note: in expansion of macro 'LOOP_L_N'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^~~~~~~~
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:55:5: note: in expansion of macro 'GRID_LOOP'
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~~
In file included from Marlin\src\feature/bedlevel/bedlevel.h:69:0,
from Marlin\src\MarlinCore.cpp:174:
Marlin\src\feature/bedlevel/mbl/mesh_bed_leveling.h:55:25: error: 'z_values' was not declared in this scope
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\mega2560\src\src\MarlinCore.cpp.o] Error 1
In file included from Marlin\src\feature\bedlevel\bedlevel.cpp:27:0:
Marlin\src\feature\bedlevel\bedlevel.h:62:47: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
Marlin\src\feature\bedlevel\bedlevel.h:62:47: note: suggested alternative: 'GRID_MAX_POINTS_X'
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
In file included from Marlin\src\feature\bedlevel\bedlevel.h:69:0,
from Marlin\src\feature\bedlevel\bedlevel.cpp:27:
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:44:44: error: 'GRID_MAX_POINTS_Y' was not declared in
this scope
z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y],
^~~~~~~~~~~~~~~~~
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:44:44: note: suggested alternative: 'GRID_MAX_POINTS_X'
z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y],
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:46:30: error: 'GRID_MAX_POINTS_Y' was not declared in
this scope
index_to_ypos[GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:46:30: note: suggested alternative: 'GRID_MAX_POINTS_X'
index_to_ypos[GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
In file included from Marlin\src\feature\bedlevel\../../inc/MarlinConfigPre.h:37:0,
from Marlin\src\feature\bedlevel\../../inc/MarlinConfig.h:28,
from Marlin\src\feature\bedlevel\bedlevel.cpp:23:
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h: In static member function 'static bool mesh_bed_leveling::has_mesh()':
Marlin\src\feature\bedlevel\../../inc/Conditionals_LCD.h:1116:69: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^
Marlin\src\feature\bedlevel\../../inc/../core/macros.h:373:58: note: in definition of macro 'LOOP_S_L_N'
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
^
Marlin\src\feature\bedlevel\../../inc/Conditionals_LCD.h:1116:57: note: in expansion of macro 'LOOP_L_N'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^~~~~~~~
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:55:5: note: in expansion of macro 'GRID_LOOP'
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~~
Marlin\src\feature\bedlevel\../../inc/Conditionals_LCD.h:1116:69: note: suggested alternative: 'GRID_MAX_POINTS_X'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^
Marlin\src\feature\bedlevel\../../inc/../core/macros.h:373:58: note: in definition of macro 'LOOP_S_L_N'
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
^
Marlin\src\feature\bedlevel\../../inc/Conditionals_LCD.h:1116:57: note: in expansion of macro 'LOOP_L_N'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^~~~~~~~
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:55:5: note: in expansion of macro 'GRID_LOOP'
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~~
In file included from Marlin\src\feature\bedlevel\bedlevel.h:69:0,
from Marlin\src\feature\bedlevel\bedlevel.cpp:27:
Marlin\src\feature\bedlevel\mbl/mesh_bed_leveling.h:55:25: error: 'z_values' was not declared in this scope
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~
In file included from Marlin\src\feature\bedlevel\mbl\mesh_bed_leveling.cpp:27:0:
Marlin\src\feature\bedlevel\mbl\../bedlevel.h:62:47: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
Marlin\src\feature\bedlevel\mbl\../bedlevel.h:62:47: note: suggested alternative: 'GRID_MAX_POINTS_X'
typedef float bed_mesh_t[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
In file included from Marlin\src\feature\bedlevel\mbl\../bedlevel.h:69:0,
from Marlin\src\feature\bedlevel\mbl\mesh_bed_leveling.cpp:27:
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:44:44: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y],
^~~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=5.
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:44:44: note: suggested alternative: 'GRID_MAX_POINTS_X'
z_values[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y],
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:46:30: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
index_to_ypos[GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:46:30: note: suggested alternative: 'GRID_MAX_POINTS_X'
index_to_ypos[GRID_MAX_POINTS_Y];
^~~~~~~~~~~~~~~~~
GRID_MAX_POINTS_X
In file included from Marlin\src\feature\bedlevel\mbl\../../../inc/MarlinConfigPre.h:37:0,
from Marlin\src\feature\bedlevel\mbl\../../../inc/MarlinConfig.h:28,
from Marlin\src\feature\bedlevel\mbl\mesh_bed_leveling.cpp:23:
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h: In static member function 'static bool mesh_bed_leveling::has_mesh()':
Marlin\src\feature\bedlevel\mbl\../../../inc/Conditionals_LCD.h:1116:69: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^
Marlin\src\feature\bedlevel\mbl\../../../inc/../core/macros.h:373:58: note: in definition of macro 'LOOP_S_L_N'
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
^
Marlin\src\feature\bedlevel\mbl\../../../inc/Conditionals_LCD.h:1116:57: note: in expansion of macro 'LOOP_L_N'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^~~~~~~~
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:55:5: note: in expansion of macro 'GRID_LOOP'
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~~
Marlin\src\feature\bedlevel\mbl\../../../inc/Conditionals_LCD.h:1116:69: note: suggested alternative: 'GRID_MAX_POINTS_X'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^
Marlin\src\feature\bedlevel\mbl\../../../inc/../core/macros.h:373:58: note: in definition of macro 'LOOP_S_L_N'
#define LOOP_S_L_N(VAR, S, N) for (uint8_t VAR=(S); VAR<(N); VAR++)
^
Marlin\src\feature\bedlevel\mbl\../../../inc/Conditionals_LCD.h:1116:57: note: in expansion of macro 'LOOP_L_N'
#define GRID_LOOP(A,cool smiley LOOP_L_N(A, GRID_MAX_POINTS_X) LOOP_L_N(B, GRID_MAX_POINTS_Y)
^~~~~~~~
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:55:5: note: in expansion of macro 'GRID_LOOP'
GRID_LOOP(x, y) if (z_values[x][y]) return true;
^~~~~~~~~
*** [.pio\build\mega2560\src\src\feature\bedlevel\bedlevel.cpp.o] Error 1
In file included from Marlin\src\feature\bedlevel\mbl\../bedlevel.h:69:0,
from Marlin\src\feature\bedlevel\mbl\mesh_bed_leveling.cpp:27:
Marlin\src\feature\bedlevel\mbl\../mbl/mesh_bed_leveling.h:55:25: error: 'z_values' was not declared in th ^~~~~~~~
compilation terminated due to -fmax-errors=5.
*** [.pio\build\mega2560\src\src\feature\bedlevel\mbl\mesh_bed_leveling.cpp.o] Error 1
====================================== [FAILED] Took 10.18 seconds ======================================

Environment Status Duration
------------- -------- ------------
mega2560 FAILED 00:00:10.184
================================= 1 failed, 0 succeeded in 00:00:10.184 =================================
PS C:\Users\mirko\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x> echo "done" >"C:\Users\mirko\AppData\Local\Temp\ipc"
PS C:\Users\mirko\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x> platformio run -e mega2560
Processing mega2560 (board: megaatmega2560; platform: atmelavr@~3.4; framework: arduino)


Then i have tried to define and add different values to this row -

#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X

But it saying


In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\HAL_SPI.cpp:34:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\MarlinSerial.cpp:39:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#if (GRID_MAX_POINTS_X) && (GRID_MAX_POINTS_Y)
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#if (GRID_MAX_POINTS_X) && (GRID_MAX_POINTS_Y)
^~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\Servo.cpp:55:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#if (GRID_MAX_POINTS_X) && (GRID_MAX_POINTS_Y)
^~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\eeprom.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\fast_pwm.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#if (GRID_MAX_POINTS_X) && (GRID_MAX_POINTS_Y)
^~~~~~~~~~~~~~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL.cpp.o] Error 1
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#if (GRID_MAX_POINTS_X) && (GRID_MAX_POINTS_Y)
^~~~~~~~~~~~~~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\HAL_SPI.cpp.o] Error 1
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#if (GRID_MAX_POINTS_X) && (GRID_MAX_POINTS_Y)
^~~~~~~~~~~~~~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o] Error 1
In file included from Marlin\src\HAL\AVR\../../inc/MarlinConfigPre.h:39:0,
from Marlin\src\HAL\AVR\../../inc/MarlinConfig.h:28,
from Marlin\src\HAL\AVR\watchdog.cpp:24:
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/SanityCheck.h:1872:37: note: in expansion of macro 'GRID_MAX_POINTS_Y'
#elif (GRID_MAX_POINTS_X) > 9 || (GRID_MAX_POINTS_Y) > 9
^~~~~~~~~~~~~~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\Servo.cpp.o] Error 1
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1828:29: error: missing binary operator before token "4"
#define GRID_MAX_POINTS_X 4 // Don't use more than 7 points per axis, implementation limited.
^
Marlin\src\HAL\AVR\../../inc/../../Configuration.h:1829:31: note: in expansion of macro 'GRID_MAX_POINTS_X'
#define GRID_MAX_POINTS_Y 4 GRID_MAX_POINTS_X
^~~~~~~~~~~~~~~~~
Marlin\src\HAL\AVR\../../inc/../core/utility.h:36:29: note: in expansion of macro 'GRID_MAX_POINTS_Y'
^~~~~~~~~~~~~~~~~
*** [.pio\build\mega2560\src\src\HAL\AVR\eeprom.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\fast_pwm.cpp.o] Error 1
*** [.pio\build\mega2560\src\src\HAL\AVR\watchdog.cpp.o] Error 1
======================================= [FAILED] Took 7.28 seconds =======================================

Environment Status Duration
------------- -------- ------------
mega2560 FAILED 00:00:07.277
================================= 1 failed, 0 succeeded in 00:00:07.277 =================================
PS C:\Users\mirko\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x> echo "done" >"C:\Users\mirko\AppData\Local\Temp\ipc"
PS C:\Users\mirko\Downloads\Marlin-bugfix-2.0.x\Marlin-bugfix-2.0.x>


Have anyone advice for me? eye rolling smiley
Attachments:
open | download - Configuration_adv.h (177.6 KB)
open | download - Configuration.h (115.5 KB)
Re: Manual mesh bed levelling
April 05, 2022 01:03AM
In configuration.h

replace
#if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)

with

#if ANY(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR, MESH_BED_LEVELING)
Re: Manual mesh bed levelling
April 05, 2022 03:00PM
Super big thanks smiling smiley

I struggled with this lot of hours but best way is ask from proffesionals. Thanks again thumbs upspinning smiley sticking its tongue out
Re: Manual mesh bed levelling
April 19, 2022 06:32AM
You missed Y line.

#define PROBE_MANUALLY
#define MESH_BED_LEVELING
#define ENABLE_LEVELING_AFTER_G28
#define MESH_INSET 15
#define GRID_MAX_POINTS_X 4

????? where is Y ?


In file included from Marlin\src\MarlinCore.cpp:174:0:
Marlin\src\feature/bedlevel/bedlevel.h:62:47: error: 'GRID_MAX_POINTS_Y' was not declared in this scope
                                             ^^^^^^^^^^^^^^^^^^^^^^^^

Edited 1 time(s). Last edit at 04/19/2022 06:33AM by karabas.
Sorry, only registered users may post in this forum.

Click here to login