MKS_GEN_L V1.0 的配置

3D打印 马林鱼 arduino-mega-2650 坡道
2021-04-27 18:01:57

我买了一个新的“MKS GEN_L V1.0”,我正在尝试用 Marlin 1.1.X 配置它。我换了configuration.h以前的主板

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

#define BOARD_MKS_GEN_L 53 //MKS GEN L.

我收到此错误:

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

1个回答

主板定义configuration.h应该写成:

#define MOTHERBOARD BOARD_MKS_GEN_L

实际上这个词MOTHERBOARD是丢失的,不需要写 53 //MKS GEN L在最后。

数字定义声明在boards.h- 你只是混淆了两个文件,确实你不应该忘记定义主板常量本身。请注意,这基本上是一个 RAMPS 板,请参阅pins_MKS_GEN_L.h