<p>As explained in the <a href="/a/11866/">answer by @towe</a>, you are using an older version of the configuration file, it appears that you aren't using the latest sources from the 1.1.x and the 2.0.x trees.</p>

<p>In addition to the answer, the MKS GEN L is basically a RAMPS board with RAMPS pin layout except for a few pins. The board is defined in both <a href="https://github.com/MarlinFirmware/Marlin/blob/1.1.x/Marlin/pins_MKS_GEN_L.h" rel="nofollow noreferrer">1.1.9</a> and <a href="https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/src/pins/ramps/pins_MKS_GEN_L.h" rel="nofollow noreferrer">2.0.x</a> (if you scroll down you see that it includes the pin definition for a RAMPS layout: #include "pins_RAMPS.h"). This being said, you could get it to work in pre 1.1.7 release of Marlin if you must. Choosing a RAMPS board for <code>MOTHERBOARD</code> constant and overriding/defining <code>MOSFET_D_PIN</code> to 7, <code>X_CS_PIN</code> to 59 and <code>X_CS_PIN</code> to 63 will make the firmware work. But, it is advised to get the latest version, even Marlin 2.0.x will run fine on Arduino Mega 2560 based boards.</p>

CC BY-SA 4.0
2020-01-28T00:43:48.800Z
bahh I did not catch that.  I have adjusted and this was what I needed.  The version of marlin i was downloading only had mks base and mks 1.3.  The version you linked had the right thing in it.  Not sure how i missed it.  Thank you!!!!
James Gray
CC BY-SA 4.0
2020-01-27T09:55:33.950Z
2020-01-27T09:55:33.950Z
0scar
<p>The MKS GEN L board was added in Marlin release 1.1.7 .</p>

<p>According to the configuration file you've linked and <a href="https://github.com/MarlinFirmware/Marlin/releases" rel="nofollow noreferrer">previous Marlin releases</a>, your copy of Marlin is release 1.1.6. While all Marlin releases before 1.1.7 had "010100" as "CONFIGURATION_H_VERSION", earlier versions had less features than listed in your configuration file.</p>

<p>In Marlin 2.0.x, the MKS GEN L is <a href="https://github.com/MarlinFirmware/Marlin/blob/2.0.1/Marlin/src/core/boards.h#L66" rel="nofollow noreferrer">also</a> <a href="https://github.com/MarlinFirmware/Marlin/blob/2.0.1/Marlin/src/pins/ramps/pins_MKS_GEN_L.h" rel="nofollow noreferrer">available</a>.</p>

<p>Since you said it was also unavailable in 2.0.x, please provide a copy of your entire 2.0.x setup.</p>

CC BY-SA 4.0
2020-01-27T09:12:20.423Z
2020-01-27T09:12:20.423Z
towe
<p>This is my first time asking for some help on here and I have Googled, but only found a few reference to this issue. I know I am doing something dumb but I have no clue what it is. </p>

<p>I get an unknown motherboard error every time I try to setup my MKS GEN L. At first I found that in the <code>boards.h</code> file there was no reference to this board and the <code>pins.h</code> file was not there either. I have added both of these in and still nothing. I have checked the <code>configuration.h</code> and as far as I can tell I cannot find the error. </p>

<p>I have tried this in 1.1.9 and 2.x of marlin and get the same error.</p>

<p>The message is:</p>

<pre>
    Arduino: 1.8.9 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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

                 from C:\Users\name\OneDrive\Desktop\Ender 5 1.1.61 version (1)\Ender 5 1.1.61 version\Marlin\Marlin.ino:31:

pins.h:235:4: error: #error "Unknown MOTHERBOARD value set in Configuration.h"

   #error "Unknown MOTHERBOARD value set in Configuration.h"

    ^~~~~

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

                 from C:\Users\jcgra\OneDrive\Desktop\Ender 5 1.1.61 version (1)\Ender 5 1.1.61 version\Marlin\Marlin.ino:31:

SanityCheck.h:311:6: error: #error "BABYSTEP_ZPROBE_OFFSET requires a probe."

     #error "BABYSTEP_ZPROBE_OFFSET requires a probe."

      ^~~~~

SanityCheck.h:624:8: 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:909:4: 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"

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
</pre>

<p>My config file is as follows <a href="https://gist.github.com/cripto101/9e9e36f509352ab19033beb189e166d7" rel="nofollow noreferrer">Config.h</a>.</p>

<p>Please let me know if there is anything else you might need to help with this matter and thank you for your time and attention.</p>

CC BY-SA 4.0
2020-01-26T23:38:32.353Z
What firmware are you using? Marlin has your board in the boards.h file under 1110 in Marlin 2.x.
0scar
CC BY-SA 4.0
2020-01-26T23:53:06.603Z
In this iteration I had 1.1.9.  I have used 2.x and I get the same problems.  In the later versons of Marlin the MKS Gen L is missing from Marlin all together.  It is only seen in the 1.1.9 so far unless I am missing something.
James Gray
CC BY-SA 4.0
2020-01-27T07:29:34.450Z
Well it's not missing in Marlin 2.0 on Github: https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/src/core/boards.h
towe
CC BY-SA 4.0
2020-01-27T07:37:48.037Z
I've just went over the configuration.h you posted, and it appears you're using the 1.1.6 (or older) release of Marlin. The MKS_GEN_L was added in 1.1.7
towe
<marlin><creality-ender-5>
MKS GEN L unknown motherboard error
James Gray
# MKS GEN L unknown motherboard error

(Asked by: username_0 on 2020-01-26)

This is my first time asking for some help on here and I have Googled, but only found a few reference to this issue. I know I am doing something dumb but I have no clue what it is. 
I get an unknown motherboard error every time I try to setup my MKS GEN L. At first I found that in the boards.h file there was no reference to this board and the pins.h file was not there either. I have added both of these in and still nothing. I have checked the configuration.h and as far as I can tell I cannot find the error. 
I have tried this in 1.1.9 and 2.x of marlin and get the same error.
The message is:

    Arduino: 1.8.9 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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

                 from C:\Users\name\OneDrive\Desktop\Ender 5 1.1.61 version (1)\Ender 5 1.1.61 version\Marlin\Marlin.ino:31:

pins.h:235:4: error: #error "Unknown MOTHERBOARD value set in Configuration.h"

   #error "Unknown MOTHERBOARD value set in Configuration.h"

    ^~~~~

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

                 from C:\Users\jcgra\OneDrive\Desktop\Ender 5 1.1.61 version (1)\Ender 5 1.1.61 version\Marlin\Marlin.ino:31:

SanityCheck.h:311:6: error: #error "BABYSTEP_ZPROBE_OFFSET requires a probe."

     #error "BABYSTEP_ZPROBE_OFFSET requires a probe."

      ^~~~~

SanityCheck.h:624:8: 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:909:4: 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"

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

My config file is as follows Config.h.
Please let me know if there is anything else you might need to help with this matter and thank you for your time and attention.

**Tags:** marlin, creality-ender-5
> **Comments:**
> **username_1**: What firmware are you using? Marlin has your board in the boards.h file under 1110 in Marlin 2.x.  
> **username_0**: In this iteration I had 1.1.9.  I have used 2.x and I get the same problems.  In the later versons of Marlin the MKS Gen L is missing from Marlin all together.  It is only seen in the 1.1.9 so far unless I am missing something.  
> **username_2**: Well it's not missing in Marlin 2.0 on Github: https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/src/core/boards.h  
> **username_2**: I've just went over the configuration.h you posted, and it appears you're using the 1.1.6 (or older) release of Marlin. The MKS_GEN_L was added in 1.1.7  

---

## 2 answers

### Answer by username_1 on 2020-01-27. Score: 0 | Accepted answer

As explained in the [answer by @towe](/a/11866/), you are using an older version of the configuration file, it appears that you aren't using the latest sources from the 1.1.x and the 2.0.x trees.

In addition to the answer, the MKS GEN L is basically a RAMPS board with RAMPS pin layout except for a few pins. The board is defined in both [1.1.9](https://github.com/MarlinFirmware/Marlin/blob/1.1.x/Marlin/pins_MKS_GEN_L.h) and [2.0.x](https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/src/pins/ramps/pins_MKS_GEN_L.h) (if you scroll down you see that it includes the pin definition for a RAMPS layout: #include "pins\_RAMPS.h"). This being said, you could get it to work in pre 1.1.7 release of Marlin if you must. Choosing a RAMPS board for `MOTHERBOARD` constant and overriding/defining `MOSFET_D_PIN` to 7, `X_CS_PIN` to 59 and `X_CS_PIN` to 63 will make the firmware work. But, it is advised to get the latest version, even Marlin 2.0.x will run fine on Arduino Mega 2560 based boards.

> **Comments:**
> **username_0**: bahh I did not catch that.  I have adjusted and this was what I needed.  The version of marlin i was downloading only had mks base and mks 1.3.  The version you linked had the right thing in it.  Not sure how i missed it.  Thank you!!!!  

---

### Answer by username_2 on 2020-01-27. Score: 2

The MKS GEN L board was added in Marlin release 1.1.7 .

According to the configuration file you've linked and [previous Marlin releases](https://github.com/MarlinFirmware/Marlin/releases), your copy of Marlin is release 1.1.6. While all Marlin releases before 1.1.7 had "010100" as "CONFIGURATION\_H\_VERSION", earlier versions had less features than listed in your configuration file.

In Marlin 2.0.x, the MKS GEN L is [also](https://github.com/MarlinFirmware/Marlin/blob/2.0.1/Marlin/src/core/boards.h#L66) [available](https://github.com/MarlinFirmware/Marlin/blob/2.0.1/Marlin/src/pins/ramps/pins_MKS_GEN_L.h).

Since you said it was also unavailable in 2.0.x, please provide a copy of your entire 2.0.x setup.


---

