Keith Bennett 1 год назад
Родитель
Сommit
1bab0243fd
Аккаунт пользователя с таким Email не найден

+ 12
- 11
Marlin/src/core/boards.h Просмотреть файл

@@ -408,17 +408,18 @@
408 408
 #define BOARD_MKS_ROBIN_PRO_V2        4227  // MKS Robin Pro V2 (STM32F407VE)
409 409
 #define BOARD_MKS_ROBIN_NANO_V3       4228  // MKS Robin Nano V3 (STM32F407VG)
410 410
 #define BOARD_MKS_ROBIN_NANO_V3_1     4229  // MKS Robin Nano V3.1 (STM32F407VE)
411
-#define BOARD_MKS_MONSTER8            4230  // MKS Monster8 (STM32F407VG)
412
-#define BOARD_ANET_ET4                4231  // ANET ET4 V1.x (STM32F407VG)
413
-#define BOARD_ANET_ET4P               4232  // ANET ET4P V1.x (STM32F407VG)
414
-#define BOARD_FYSETC_CHEETAH_V20      4233  // FYSETC Cheetah V2.0
415
-#define BOARD_TH3D_EZBOARD_V2         4234  // TH3D EZBoard v2.0
416
-#define BOARD_OPULO_LUMEN_REV3        4235  // Opulo Lumen PnP Controller REV3 (STM32F407VE/VG)
417
-#define BOARD_MKS_ROBIN_NANO_V1_3_F4  4236  // MKS Robin Nano V1.3 and MKS Robin Nano-S V1.3 (STM32F407VE)
418
-#define BOARD_MKS_EAGLE               4237  // MKS Eagle (STM32F407VE)
419
-#define BOARD_ARTILLERY_RUBY          4238  // Artillery Ruby (STM32F401RC)
420
-#define BOARD_FYSETC_SPIDER_V2_2      4239  // FYSETC Spider V2.2 (STM32F446VE)
421
-#define BOARD_CREALITY_V24S1_301F4    4240  // Creality v2.4.S1_301F4 (STM32F401RC) as found in the Ender-3 S1 F4
411
+#define BOARD_MKS_MONSTER8_V1         4230  // MKS Monster8 V1 (STM32F407VG)
412
+#define BOARD_MKS_MONSTER8_V2         4231  // MKS Monster8 V2 (STM32F407VG)
413
+#define BOARD_ANET_ET4                4232  // ANET ET4 V1.x (STM32F407VG)
414
+#define BOARD_ANET_ET4P               4233  // ANET ET4P V1.x (STM32F407VG)
415
+#define BOARD_FYSETC_CHEETAH_V20      4234  // FYSETC Cheetah V2.0
416
+#define BOARD_TH3D_EZBOARD_V2         4235  // TH3D EZBoard v2.0
417
+#define BOARD_OPULO_LUMEN_REV3        4236  // Opulo Lumen PnP Controller REV3 (STM32F407VE/VG)
418
+#define BOARD_MKS_ROBIN_NANO_V1_3_F4  4237  // MKS Robin Nano V1.3 and MKS Robin Nano-S V1.3 (STM32F407VE)
419
+#define BOARD_MKS_EAGLE               4238  // MKS Eagle (STM32F407VE)
420
+#define BOARD_ARTILLERY_RUBY          4239  // Artillery Ruby (STM32F401RC)
421
+#define BOARD_FYSETC_SPIDER_V2_2      4240  // FYSETC Spider V2.2 (STM32F446VE)
422
+#define BOARD_CREALITY_V24S1_301F4    4241  // Creality v2.4.S1_301F4 (STM32F401RC) as found in the Ender-3 S1 F4
422 423
 
423 424
 //
424 425
 // ARM Cortex M7

+ 8
- 2
Marlin/src/pins/pins.h Просмотреть файл

@@ -683,8 +683,10 @@
683 683
   #include "stm32f4/pins_ANET_ET4P.h"           // STM32F4                                env:Anet_ET4_no_bootloader env:Anet_ET4_OpenBLT
684 684
 #elif MB(FYSETC_CHEETAH_V20)
685 685
   #include "stm32f4/pins_FYSETC_CHEETAH_V20.h"  // STM32F4                                env:FYSETC_CHEETAH_V20
686
-#elif MB(MKS_MONSTER8)
687
-  #include "stm32f4/pins_MKS_MONSTER8.h"        // STM32F4                                env:mks_monster8 env:mks_monster8_usb_flash_drive env:mks_monster8_usb_flash_drive_msc
686
+#elif MB(MKS_MONSTER8_V1)
687
+  #include "stm32f4/pins_MKS_MONSTER8_V1.h"     // STM32F4                                env:mks_monster8 env:mks_monster8_usb_flash_drive env:mks_monster8_usb_flash_drive_msc
688
+#elif MB(MKS_MONSTER8_V2)
689
+  #include "stm32f4/pins_MKS_MONSTER8_V2.h"     // STM32F4                                env:mks_monster8 env:mks_monster8_usb_flash_drive env:mks_monster8_usb_flash_drive_msc
688 690
 #elif MB(TH3D_EZBOARD_V2)
689 691
   #include "stm32f4/pins_TH3D_EZBOARD_V2.h"     // STM32F4                                env:TH3D_EZBoard_V2_no_bootloader env:TH3D_EZBoard_V2_OpenBLT
690 692
 #elif MB(OPULO_LUMEN_REV3)
@@ -800,6 +802,7 @@
800 802
   #define BOARD_BTT_SKR_V2_0            99922
801 803
   #define BOARD_TH3D_EZBOARD_LITE_V2    99923
802 804
   #define BOARD_BTT_SKR_SE_BX           99924
805
+  #define BOARD_MKS_MONSTER8            99925
803 806
 
804 807
   #if MB(MKS_13)
805 808
     #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
@@ -853,6 +856,8 @@
853 856
     #error "BOARD_TH3D_EZBOARD_LITE_V2 is now BOARD_TH3D_EZBOARD_V2. Please update your configuration."
854 857
   #elif MB(BTT_SKR_SE_BX)
855 858
     #error "BOARD_BTT_SKR_SE_BX is now BOARD_BTT_SKR_SE_BX_V2 or BOARD_BTT_SKR_SE_BX_V3. Please update your configuration."
859
+  #elif MB(MKS_MONSTER8)
860
+    #error "BOARD_MKS_MONSTER8 is now BOARD_MKS_MONSTER8_V1 or BOARD_MKS_MONSTER8_V2. Please update your configuration."
856 861
   #elif defined(MOTHERBOARD)
857 862
     #error "Unknown MOTHERBOARD value set in Configuration.h."
858 863
   #else
@@ -884,6 +889,7 @@
884 889
   #undef BOARD_BTT_SKR_V2_0
885 890
   #undef BOARD_TH3D_EZBOARD_LITE_V2
886 891
   #undef BOARD_BTT_SKR_SE_BX
892
+  #undef BOARD_MKS_MONSTER8
887 893
 
888 894
 #endif
889 895
 

+ 51
- 0
Marlin/src/pins/stm32f4/pins_MKS_MONSTER8_V1.h Просмотреть файл

@@ -0,0 +1,51 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#define BOARD_INFO_NAME "MKS Monster8 V1"
25
+
26
+//
27
+// Limit Switches
28
+//
29
+#define X_MAX_PIN                           PA13
30
+#define Y_MAX_PIN                           PC5
31
+
32
+//
33
+// Steppers
34
+//
35
+#define E4_ENABLE_PIN                       PD14  // Driver7
36
+
37
+//
38
+// Misc. Functions
39
+//
40
+#define PW_DET                               PC5  // Y+
41
+#define PW_OFF                              PB12  // Z+
42
+#define MT_DET_1_PIN                      PW_DET
43
+#define MT_DET_2_PIN                      PW_OFF
44
+#ifndef FIL_RUNOUT_PIN
45
+  #define FIL_RUNOUT_PIN            MT_DET_1_PIN
46
+#endif
47
+#ifndef FIL_RUNOUT2_PIN
48
+  #define FIL_RUNOUT2_PIN           MT_DET_2_PIN
49
+#endif
50
+
51
+#include "pins_MKS_MONSTER8_common.h"

+ 57
- 0
Marlin/src/pins/stm32f4/pins_MKS_MONSTER8_V2.h Просмотреть файл

@@ -0,0 +1,57 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#define BOARD_INFO_NAME "MKS Monster8 V2"
25
+
26
+//
27
+// Steppers
28
+//
29
+#define E4_ENABLE_PIN                       PB6   // Driver7
30
+
31
+//
32
+// Misc. Functions
33
+//
34
+#define PW_DET                              PA13  // MT_DET
35
+#define PW_OFF                              PB12  // Z+
36
+#define MT_DET_1_PIN                      PW_DET
37
+#define MT_DET_2_PIN                      PW_OFF
38
+#ifndef FIL_RUNOUT_PIN
39
+  #define FIL_RUNOUT_PIN            MT_DET_1_PIN
40
+#endif
41
+#ifndef FIL_RUNOUT2_PIN
42
+  #define FIL_RUNOUT2_PIN           MT_DET_2_PIN
43
+#endif
44
+
45
+//
46
+// MKS WIFI MODULE
47
+//
48
+//#define WIFI_SERIAL 1// USART1
49
+#if ENABLED(MKS_WIFI_MODULE)
50
+  #define WIFI_IO0_PIN PB14	// MKS ESP WIFI IO0 PIN
51
+  #define WIFI_IO1_PIN PB15	// MKS ESP WIFI IO1 PIN
52
+  #define WIFI_RESET_PIN PD14 // MKS ESP WIFI RESET PIN
53
+#endif
54
+
55
+#define NEOPIXEL_PIN                         PC5
56
+
57
+#include "pins_MKS_MONSTER8_common.h"

Marlin/src/pins/stm32f4/pins_MKS_MONSTER8.h → Marlin/src/pins/stm32f4/pins_MKS_MONSTER8_common.h Просмотреть файл

@@ -30,8 +30,6 @@
30 30
   #error "MKS Monster doesn't support FSMC-based TFT displays."
31 31
 #endif
32 32
 
33
-#define BOARD_INFO_NAME "MKS Monster8 V1.x"
34
-
35 33
 #define HAS_OTG_USB_HOST_SUPPORT                  // USB Flash Drive support
36 34
 #define USES_DIAG_JUMPERS
37 35
 
@@ -54,82 +52,76 @@
54 52
 #define SERVO0_PIN                          PA8   // Enable BLTOUCH
55 53
 
56 54
 //
57
-// Limit Switches for diag signal
55
+// Limit Switches for diag signals
58 56
 //
59
-#define X_DIAG_PIN                          PA14  // Driver0 diag signal is connect to X-
60
-#define Y_DIAG_PIN                          PA15  // Driver1 diag signal is connect to Y-
61
-#define Z_DIAG_PIN                          PB13  // Driver2 diag signal is connect to Z-
62
-#define E0_DIAG_PIN                         PA13  // Driver3 diag signal is connect to X+
63
-#define E1_DIAG_PIN                         PC5   // Driver4 diag signal is connect to Y+
64
-#define E2_DIAG_PIN                         PB12  // Driver5 diag signal is connect to Z+
65
-#define E3_DIAG_PIN                         -1    // Driver6 diag signal is not connect
66
-#define E4_DIAG_PIN                         -1    // Driver7 diag signal is not connect
67
-
68
-// Limit Switches for endstop
57
+#define X_DIAG_PIN                          PA14  // Driver0 diag signal is connected to X-
58
+#define Y_DIAG_PIN                          PA15  // Driver1 diag signal is connected to Y-
59
+#define Z_DIAG_PIN                          PB13  // Driver2 diag signal is connected to Z-
60
+#define E0_DIAG_PIN                         PA13  // Driver3 diag signal is connected to X+
61
+#define E1_DIAG_PIN                         PC5   // Driver4 diag signal is connected to Y+
62
+#define E2_DIAG_PIN                         PB12  // Driver5 diag signal is connected to Z+
63
+#define E3_DIAG_PIN                         -1    // Driver6 diag signal is not connected
64
+#define E4_DIAG_PIN                         -1    // Driver7 diag signal is not connected
65
+
66
+// Limit Switches for endstops
69 67
 #define X_MIN_PIN                           PA14
70
-#define X_MAX_PIN                           PA13
71 68
 #define Y_MIN_PIN                           PA15
72
-#define Y_MAX_PIN                           PC5
73 69
 #define Z_MIN_PIN                           PB13
74 70
 #define Z_MAX_PIN                           PB12
75 71
 
76 72
 //
77 73
 // Steppers
78
-// Driver 0  1  2  3  4  5  6  7
79
-// For    X  Y  Z  E0 E1 E2 E3 E4(default pin settings)
80 74
 //
81
-//Driver0
82
-#define X_ENABLE_PIN                        PC15
75
+#define X_ENABLE_PIN                        PC15  // Driver0
83 76
 #define X_STEP_PIN                          PC14
84 77
 #define X_DIR_PIN                           PC13
85 78
 #ifndef X_CS_PIN
86 79
   #define X_CS_PIN                          PE6
87 80
 #endif
88
-//Driver1
89
-#define Y_ENABLE_PIN                        PC15
81
+
82
+#define Y_ENABLE_PIN                        PC15  // Driver1
90 83
 #define Y_STEP_PIN                          PE5
91 84
 #define Y_DIR_PIN                           PE4
92 85
 #ifndef Y_CS_PIN
93 86
   #define Y_CS_PIN                          PE3
94 87
 #endif
95
-//Driver2
96
-#define Z_ENABLE_PIN                        PE2
88
+
89
+#define Z_ENABLE_PIN                        PE2   // Driver2
97 90
 #define Z_STEP_PIN                          PE1
98 91
 #define Z_DIR_PIN                           PE0
99 92
 #ifndef Z_CS_PIN
100 93
   #define Z_CS_PIN                          PB7
101 94
 #endif
102
-//Driver3
103
-#define E0_ENABLE_PIN                       PB6
95
+
96
+#define E0_ENABLE_PIN                       PB6   // Driver3
104 97
 #define E0_STEP_PIN                         PB5
105 98
 #define E0_DIR_PIN                          PB4
106 99
 #ifndef E0_CS_PIN
107 100
   #define E0_CS_PIN                         PB3
108 101
 #endif
109
-//Driver4
110
-#define E1_ENABLE_PIN                       PD7
102
+
103
+#define E1_ENABLE_PIN                       PD7   // Driver4
111 104
 #define E1_STEP_PIN                         PD6
112 105
 #define E1_DIR_PIN                          PD5
113 106
 #ifndef E1_CS_PIN
114 107
   #define E1_CS_PIN                         PD4
115 108
 #endif
116
-//Driver5
117
-#define E2_ENABLE_PIN                       PD3
109
+
110
+#define E2_ENABLE_PIN                       PD3   // Driver5
118 111
 #define E2_STEP_PIN                         PD2
119 112
 #define E2_DIR_PIN                          PD1
120 113
 #ifndef E2_CS_PIN
121 114
   #define E2_CS_PIN                         PD0
122 115
 #endif
123
-//Driver6
124
-#define E3_ENABLE_PIN                       PC8
116
+
117
+#define E3_ENABLE_PIN                       PC8   // Driver6
125 118
 #define E3_STEP_PIN                         PC7
126 119
 #define E3_DIR_PIN                          PC6
127 120
 #ifndef E3_CS_PIN
128 121
   #define E3_CS_PIN                         PD15
129 122
 #endif
130
-//Driver7
131
-#define E4_ENABLE_PIN                       PD14
132
-#define E4_STEP_PIN                         PD13
123
+
124
+#define E4_STEP_PIN                         PD13  // Driver7
133 125
 #define E4_DIR_PIN                          PD12
134 126
 #ifndef E4_CS_PIN
135 127
   #define E4_CS_PIN                         PD11
@@ -208,20 +200,6 @@
208 200
 #define FAN2_PIN                            PA0   // FAN2
209 201
 
210 202
 //
211
-// Misc. Functions
212
-//
213
-#define PW_DET                              PC5   // Y+
214
-#define PW_OFF                              PB12  // Z+
215
-#define MT_DET_1_PIN                      PW_DET
216
-#define MT_DET_2_PIN                      PW_OFF
217
-#ifndef FIL_RUNOUT_PIN
218
-  #define FIL_RUNOUT_PIN            MT_DET_1_PIN
219
-#endif
220
-#ifndef FIL_RUNOUT2_PIN
221
-  #define FIL_RUNOUT2_PIN           MT_DET_2_PIN
222
-#endif
223
-
224
-//
225 203
 // Power Supply Control
226 204
 //
227 205
 #if ENABLED(MKS_PWC)
@@ -347,8 +325,8 @@
347 325
     #define DOGLCD_CS                EXP1_05_PIN
348 326
     #define DOGLCD_SCK               EXP2_09_PIN
349 327
     #define DOGLCD_MOSI              EXP2_05_PIN
350
-    //#define LCD_BACKLIGHT_PIN               -1
351
-    //#define LCD_RESET_PIN                   -1
328
+    //#define LCD_BACKLIGHT_PIN             -1
329
+    //#define LCD_RESET_PIN                 -1
352 330
 
353 331
   #elif ENABLED(FYSETC_MINI_12864_2_1)
354 332
 

+ 3
- 3
ini/stm32f4.ini Просмотреть файл

@@ -515,7 +515,7 @@ build_unflags     = -DUSBD_USE_CDC
515 515
 build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
516 516
 
517 517
 #
518
-# MKS Monster8
518
+# MKS Monster8 V1 / V2 (STM32F407VET6 ARM Cortex-M4)
519 519
 #
520 520
 [env:mks_monster8]
521 521
 extends                     = stm32_variant
@@ -531,7 +531,7 @@ debug_tool                  = jlink
531 531
 upload_protocol             = jlink
532 532
 
533 533
 #
534
-# MKS Monster8 with USB Flash Drive Support
534
+# MKS Monster8 V1 / V2 (STM32F407VET6 ARM Cortex-M4) with USB Flash Drive Support
535 535
 # Currently, using a STM32duino fork, until USB Host get merged
536 536
 #
537 537
 [env:mks_monster8_usb_flash_drive]
@@ -544,7 +544,7 @@ build_flags       = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flag
544 544
                     -DUSE_USB_HS_IN_FS
545 545
 
546 546
 #
547
-# MKS Monster8 with USB Flash Drive Support and Shared Media
547
+# MKS Monster8 V1 / V2 (STM32F407VET6 ARM Cortex-M4) with USB Flash Drive Support and Shared Media
548 548
 # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
549 549
 #
550 550
 [env:mks_monster8_usb_flash_drive_msc]

Загрузка…
Отмена
Сохранить