<p>The motherboard definition in <code>configuration.h</code> should be written like:</p>

<pre><code>#define MOTHERBOARD BOARD_MKS_GEN_L
</code></pre>

<p>actually the word <code>MOTHERBOARD</code> was missing and there is no need to write  <code>53 //MKS GEN L</code> at the end.</p>

<p>The number definition is declared in <code>boards.h</code> - you just confused the two files, indeed you should not forget to define the motherboard constant itself. Do note that this is basically a RAMPS board, see <code>pins_MKS_GEN_L.h</code>.</p>

CC BY-SA 4.0
2019-04-18T12:33:07.830Z
2019-04-21T06:34:58.913Z
2019-04-21T06:34:58.913Z
2012User
<p>I've bought a new "MKS GEN_L V1.0" and I'm trying to configure it with Marlin 1.1.X. I changed motherboard in <code>configuration.h</code> from previous:</p>

<p><code>#define BOARD_RAMPS_13_EFB   33 //RAMPS 1.3 (Power outputs:Hotend,Fan,Bed)</code> </p>

<p>to </p>

<p><code>#define BOARD_MKS_GEN_L  53 //MKS GEN L</code>. </p>

<p>I'm getting this error:</p>

<pre><code>pins.h:268: error: #error "**Unknown MOTHERBOARD value set in Configuration.h**"
       #error "Unknown MOTHERBOARD value set in Configuration.h"
        ^
    In file included from sketch\MarlinConfig.h:42:0,
                     from sketch\G26_Mesh_Validation_Tool.cpp:27:

SanityCheck.h:58: error: #error "MOTHERBOARD is required. Please update your configuration."
       #error "MOTHERBOARD is required. Please update your configuration."
        ^
    SanityCheck.h:786: error: #error "**Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined.**"
           #error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined."

        ^
    SanityCheck.h:942: error: #error "**LCD_BED_LEVELING requires an LCD controller.**"
         #error "LCD_BED_LEVELING requires an LCD controller."
          ^

SanityCheck.h:1084: error: #error "**HEATER_0_PIN not defined for this board.**"
       #error "HEATER_0_PIN not defined for this board."
        ^
    exit status 1
#error "Unknown MOTHERBOARD value set in Configuration.h"
</code></pre>

<p><a href="https://i.sstatic.net/84l1J.jpg" rel="nofollow noreferrer" title="MKS_GEN_L V1.0"><img src="https://i.sstatic.net/84l1J.jpg" alt="MKS_GEN_L V1.0" title="MKS_GEN_L V1.0"></a></p>

CC BY-SA 4.0
2019-06-02T07:10:22.430Z
can you share the source where are you got source of configuration.h file
vda
CC BY-SA 4.0
2019-06-02T18:21:20.290Z
obviously, it is in the marlin folder.
2012User
<marlin><arduino-mega-2650><ramps>
Configuring of MKS_GEN_L V1.0
2012User
# Configuring of MKS_GEN_L V1.0

(Asked by: username_0 on 2019-04-18)

I've bought a new "MKS GEN\_L V1.0" and I'm trying to configure it with Marlin 1.1.X. I changed motherboard in `configuration.h` from previous:

`#define BOARD_RAMPS_13_EFB 33 //RAMPS 1.3 (Power outputs:Hotend,Fan,Bed)`

to

`#define BOARD_MKS_GEN_L 53 //MKS GEN L`.

I'm getting this error:

```
pins.h:268: error: #error "**Unknown MOTHERBOARD value set in Configuration.h**"
       #error "Unknown MOTHERBOARD value set in Configuration.h"
        ^
    In file included from sketch\MarlinConfig.h:42:0,
                     from sketch\G26_Mesh_Validation_Tool.cpp:27:

SanityCheck.h:58: error: #error "MOTHERBOARD is required. Please update your configuration."
       #error "MOTHERBOARD is required. Please update your configuration."
        ^
    SanityCheck.h:786: error: #error "**Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined.**"
           #error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined."

        ^
    SanityCheck.h:942: error: #error "**LCD_BED_LEVELING requires an LCD controller.**"
         #error "LCD_BED_LEVELING requires an LCD controller."
          ^

SanityCheck.h:1084: error: #error "**HEATER_0_PIN not defined for this board.**"
       #error "HEATER_0_PIN not defined for this board."
        ^
    exit status 1
#error "Unknown MOTHERBOARD value set in Configuration.h"

```

[![MKS_GEN_L V1.0](https://i.sstatic.net/84l1J.jpg "MKS_GEN_L V1.0")](https://i.sstatic.net/84l1J.jpg "MKS_GEN_L V1.0")

**Tags:** marlin, arduino-mega-2650, ramps

> **Comments:**
> **username_1**: can you share the source where are you got source of configuration.h file  
> **username_0**: obviously, it is in the marlin folder.  

---

## 1 answers

### Answer by username_0 on 2019-04-18. Score: 7 | Accepted answer

The motherboard definition in `configuration.h` should be written like:

```
#define MOTHERBOARD BOARD_MKS_GEN_L

```

actually the word `MOTHERBOARD` was missing and there is no need to write `53 //MKS GEN L` at the end.

The number definition is declared in `boards.h` - you just confused the two files, indeed you should not forget to define the motherboard constant itself. Do note that this is basically a RAMPS board, see `pins_MKS_GEN_L.h`.


---

