Arduino + MKS Gen V1.4 + Lastest MPCNC Firmware

Hello folk,

I finish the mecanical “workshop” and i try to start the board connecting “workshop”…

Firstly i try to load the firmware on the bord and after few attemps i get the same error :
Arduino : 1.8.3 (Windows 7), Carte : “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

In file included from sketch\MarlinConfig.h:27:0,

             from sketch\Marlin.h:36,

             from sketch\Marlin_main.cpp:223:

macros.h:134: error: ‘ARRAY_0’ was not declared in this scope

#define ARRAY_N(N, …) ARRAY ##N(VA_ARGS)

                                            ^

sketch\macros.h:135:25: note: in expansion of macro ‘_ARRAY_N’

#define ARRAY_N(N, …) _ARRAY_N(N, VA_ARGS)

                     ^

sketch\Conditionals_post.h:337:35: note: in expansion of macro ‘ARRAY_N’

#define ARRAY_BY_EXTRUDERS(…) ARRAY_N(EXTRUDERS, VA_ARGS)

                               ^

sketch\Conditionals_post.h:338:35: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS’

#define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1, v1, v1)

                               ^

sketch\Marlin_main.cpp:406:34: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS1’

 flow_percentage[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(100);

                              ^

macros.h:134: error: ‘ARRAY_0’ was not declared in this scope

#define ARRAY_N(N, …) ARRAY ##N(VA_ARGS)

                                            ^

sketch\macros.h:135:25: note: in expansion of macro ‘_ARRAY_N’

#define ARRAY_N(N, …) _ARRAY_N(N, VA_ARGS)

                     ^

sketch\Conditionals_post.h:337:35: note: in expansion of macro ‘ARRAY_N’

#define ARRAY_BY_EXTRUDERS(…) ARRAY_N(EXTRUDERS, VA_ARGS)

                               ^

sketch\Conditionals_post.h:338:35: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS’

#define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1, v1, v1)

                               ^

sketch\Marlin_main.cpp:416:34: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS1’

float filament_size[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(DEFAULT_NOMINAL_FILAMENT_DIA),

                              ^

In file included from sketch\MarlinConfig.h:37:0,

             from sketch\Marlin.h:36,

             from sketch\Marlin_main.cpp:223:

sketch\Marlin_main.cpp: In function ‘void gcode_M145()’:

Marlin_main.cpp:7078: error: ‘HEATER_0_MAXTEMP’ was not declared in this scope

     lcd_preheat_hotend_temp[material] = constrain(v, EXTRUDE_MINTEMP, HEATER_0_MAXTEMP - 15);

                                                                       ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:95:60: note: in definition of macro ‘constrain’

#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))

                                                        ^

Plusieurs bibliothèque trouvées pour “U8glib.h”
Utilisé : C:\Users\FR24045\Documents\Arduino\libraries\U8glib
Non utilisé : C:\Users\FR24045\Documents\Arduino\libraries\arduino_5709
exit status 1
‘ARRAY_0’ was not declared in this scope

Do you have any idea / advice ?
Thanks for your support

Herve

Did you get the firmware from here?:

https://www.v1engineering.com/marlin-firmware/

Jeffeb3,

Thanks for your answer.

Yes i got the firmware from http://v1engineering.com/marlin-firmware/

And i got the version for the 12864 screen…

But, may i didn’t the right “thing” for the good implementation.
One precision : may board isn’t a Ramps, it’s a MKS Gen V1.4…
Do you think this board is the “problem” ?

Thanks again
Regards

Hervé

Yes, firmware is board specific. You can go in and edit the Configuration.h file of my firmware. One of the first options is board type.

People Hi,

I order a new board Arduino + Ramps1.4

I dowload the firmware “MPCNC511_GLCD_T8” and i follow step by step the “How to flash firmware on the Ramps 1.4”

And the bad news is :

Arduino : 1.8.3 (Windows 7), Carte : “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

In file included from sketch\MarlinConfig.h:27:0,

             from sketch\Marlin.h:36,

             from sketch\Marlin_main.cpp:223:

macros.h:134: error: ‘ARRAY_0’ was not declared in this scope

#define ARRAY_N(N, …) ARRAY ##N(VA_ARGS)

                                            ^

sketch\macros.h:135:25: note: in expansion of macro ‘_ARRAY_N’

#define ARRAY_N(N, …) _ARRAY_N(N, VA_ARGS)

                     ^

sketch\Conditionals_post.h:337:35: note: in expansion of macro ‘ARRAY_N’

#define ARRAY_BY_EXTRUDERS(…) ARRAY_N(EXTRUDERS, VA_ARGS)

                               ^

sketch\Conditionals_post.h:338:35: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS’

#define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1, v1, v1)

                               ^

sketch\Marlin_main.cpp:406:34: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS1’

 flow_percentage[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(100);

                              ^

macros.h:134: error: ‘ARRAY_0’ was not declared in this scope

#define ARRAY_N(N, …) ARRAY ##N(VA_ARGS)

                                            ^

sketch\macros.h:135:25: note: in expansion of macro ‘_ARRAY_N’

#define ARRAY_N(N, …) _ARRAY_N(N, VA_ARGS)

                     ^

sketch\Conditionals_post.h:337:35: note: in expansion of macro ‘ARRAY_N’

#define ARRAY_BY_EXTRUDERS(…) ARRAY_N(EXTRUDERS, VA_ARGS)

                               ^

sketch\Conditionals_post.h:338:35: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS’

#define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1, v1, v1)

                               ^

sketch\Marlin_main.cpp:416:34: note: in expansion of macro ‘ARRAY_BY_EXTRUDERS1’

float filament_size[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(DEFAULT_NOMINAL_FILAMENT_DIA),

                              ^

In file included from sketch\MarlinConfig.h:37:0,

             from sketch\Marlin.h:36,

             from sketch\Marlin_main.cpp:223:

sketch\Marlin_main.cpp: In function ‘void gcode_M145()’:

Marlin_main.cpp:7078: error: ‘HEATER_0_MAXTEMP’ was not declared in this scope

     lcd_preheat_hotend_temp[material] = constrain(v, EXTRUDE_MINTEMP, HEATER_0_MAXTEMP - 15);

                                                                       ^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:95:60: note: in definition of macro ‘constrain’

#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))

                                                        ^

exit status 1
‘ARRAY_0’ was not declared in this scope

Ce rapport pourrait être plus détaillé avec
l’option “Afficher les résultats détaillés de la compilation”
activée dans Fichier -> Préférences.

I’m very sorry, i have 2 left hands 8-(

Thnaks for your help

Herve

Try to redownload the firmware, that is a non standard error. It looks as if an accidental edit to one of the files might have happened maybe when you loaded it and clicked on it by accident.

Ryan,

You are the BEST !

Bingo !

Many thanks

Regards

Hervé T

1 Like