Arduino + MKS Gen V1.4 + Lastest MPCNC Firmware

New Home Forum Mostly Printed CNC – MPCNC Troubleshooting – MPCNC Arduino + MKS Gen V1.4 + Lastest MPCNC Firmware

This topic contains 6 replies, has 3 voices, and was last updated by  H.Thieblemont 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #35593

    H.Thieblemont
    Participant

    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

    #35598

    Jeffeb3
    Participant

    Did you get the firmware from here?:

    Firmware

    #35608

    H.Thieblemont
    Participant

    Jeffeb3,

    Thanks for your answer.

    Yes i got the firmware from https://vicious1.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é

    #35610

    Ryan
    Keymaster

    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.

    #36129

    H.Thieblemont
    Participant

    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

    #36140

    Ryan
    Keymaster

    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.

    #36145

    H.Thieblemont
    Participant

    Ryan,

    You are the BEST !

    Bingo !

    Many thanks

    Regards

    Hervé T

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.