<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>

[{'answer_id': 11866, 'author': 'towe', 'author_id': 13171, 'author_profile': 'https://3dprinting.stackexchange.com/users/13171', 'pm_score': 2, 'selected': False, 'text': '<p>The MKS GEN L board was added in Marlin release 1.1.7 .</p>\n\n<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>\n\n<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>\n\n<p>Since you said it was also unavailable in 2.0.x, please provide a copy of your entire 2.0.x setup.</p>\n'}, {'answer_id': 11867, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 1, 'selected': True, 'text': '<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>\n\n<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>\n'}]
['https://3dprinting.stackexchange.com/questions/11859', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/19927/']