Browse Source

MKS Robin E3 / E3D v1.1 (#20216)

mks-viva 4 years ago
parent
commit
8c59212ca4
No account linked to committer's email address

+ 28
- 26
Marlin/src/core/boards.h View File

@@ -289,11 +289,11 @@
289 289
 // STM32 ARM Cortex-M3
290 290
 //
291 291
 
292
-#define BOARD_MALYAN_M200_V2          4000  // STM32F070CB  STM32F0 controller
292
+#define BOARD_MALYAN_M200_V2          4000  // STM32F070CB controller
293 293
 #define BOARD_MALYAN_M300             4001  // STM32F070-based delta
294 294
 #define BOARD_STM32F103RE             4002  // STM32F103RE Libmaple-based STM32F1 controller
295
-#define BOARD_MALYAN_M200             4003  // STM32C8T6  Libmaple-based STM32F1 controller
296
-#define BOARD_STM3R_MINI              4004  // STM32F103RE  Libmaple-based STM32F1 controller
295
+#define BOARD_MALYAN_M200             4003  // STM32C8T6 Libmaple-based STM32F1 controller
296
+#define BOARD_STM3R_MINI              4004  // STM32F103RE Libmaple-based STM32F1 controller
297 297
 #define BOARD_GTM32_PRO_VB            4005  // STM32F103VET6 controller
298 298
 #define BOARD_GTM32_MINI              4006  // STM32F103VET6 controller
299 299
 #define BOARD_GTM32_MINI_A30          4007  // STM32F103VET6 controller
@@ -307,29 +307,31 @@
307 307
 #define BOARD_MKS_ROBIN_LITE          4015  // MKS Robin Lite/Lite2 (STM32F103RCT6)
308 308
 #define BOARD_MKS_ROBIN_LITE3         4016  // MKS Robin Lite3 (STM32F103RCT6)
309 309
 #define BOARD_MKS_ROBIN_PRO           4017  // MKS Robin Pro (STM32F103ZET6)
310
-#define BOARD_MKS_ROBIN_E3            4018  // MKS Robin E3  (STM32F103RCT6)
311
-#define BOARD_MKS_ROBIN_E3D           4019  // MKS Robin E3D (STM32F103RCT6)
312
-#define BOARD_MKS_ROBIN_E3P           4020  // MKS Robin E3p (STM32F103VET6)
313
-#define BOARD_BTT_SKR_MINI_V1_1       4021  // BigTreeTech SKR Mini v1.1 (STM32F103RC)
314
-#define BOARD_BTT_SKR_MINI_E3_V1_0    4022  // BigTreeTech SKR Mini E3 (STM32F103RC)
315
-#define BOARD_BTT_SKR_MINI_E3_V1_2    4023  // BigTreeTech SKR Mini E3 V1.2 (STM32F103RC)
316
-#define BOARD_BTT_SKR_MINI_E3_V2_0    4024  // BigTreeTech SKR Mini E3 V2.0 (STM32F103RC)
317
-#define BOARD_BTT_SKR_MINI_MZ_V1_0    4025  // BigTreeTech SKR Mini MZ V1.0 (STM32F103RC)
318
-#define BOARD_BTT_SKR_E3_DIP          4026  // BigTreeTech SKR E3 DIP V1.0 (STM32F103RC / STM32F103RE)
319
-#define BOARD_JGAURORA_A5S_A1         4027  // JGAurora A5S A1 (STM32F103ZET6)
320
-#define BOARD_FYSETC_AIO_II           4028  // FYSETC AIO_II
321
-#define BOARD_FYSETC_CHEETAH          4029  // FYSETC Cheetah
322
-#define BOARD_FYSETC_CHEETAH_V12      4030  // FYSETC Cheetah V1.2
323
-#define BOARD_LONGER3D_LK             4031  // Alfawise U20/U20+/U30 (Longer3D LK1/2) / STM32F103VET6
324
-#define BOARD_CCROBOT_MEEB_3DP        4032  // ccrobot-online.com MEEB_3DP (STM32F103RC)
325
-#define BOARD_CHITU3D_V5              4033  // Chitu3D TronXY X5SA V5 Board
326
-#define BOARD_CHITU3D_V6              4034  // Chitu3D TronXY X5SA V5 Board
327
-#define BOARD_CREALITY_V4             4035  // Creality v4.x (STM32F103RE)
328
-#define BOARD_CREALITY_V427           4036  // Creality v4.2.7 (STM32F103RE)
329
-#define BOARD_TRIGORILLA_PRO          4037  // Trigorilla Pro (STM32F103ZET6)
330
-#define BOARD_FLY_MINI                4038  // FLY MINI (STM32F103RCT6)
331
-#define BOARD_FLSUN_HISPEED           4039  // FLSUN HiSpeedV1 (STM32F103VET6)
332
-#define BOARD_BEAST                   4040  // STM32F103RET6 Libmaple-based controller
310
+#define BOARD_MKS_ROBIN_E3            4018  // MKS Robin E3 (STM32F103RCT6)
311
+#define BOARD_MKS_ROBIN_E3_V1_1       4019  // MKS Robin E3 V1.1 (STM32F103RCT6)
312
+#define BOARD_MKS_ROBIN_E3D           4020  // MKS Robin E3D (STM32F103RCT6)
313
+#define BOARD_MKS_ROBIN_E3D_V1_1      4021  // MKS Robin E3D V1.1 (STM32F103RCT6)
314
+#define BOARD_MKS_ROBIN_E3P           4022  // MKS Robin E3p (STM32F103VET6)
315
+#define BOARD_BTT_SKR_MINI_V1_1       4023  // BigTreeTech SKR Mini v1.1 (STM32F103RC)
316
+#define BOARD_BTT_SKR_MINI_E3_V1_0    4024  // BigTreeTech SKR Mini E3 (STM32F103RC)
317
+#define BOARD_BTT_SKR_MINI_E3_V1_2    4025  // BigTreeTech SKR Mini E3 V1.2 (STM32F103RC)
318
+#define BOARD_BTT_SKR_MINI_E3_V2_0    4026  // BigTreeTech SKR Mini E3 V2.0 (STM32F103RC)
319
+#define BOARD_BTT_SKR_MINI_MZ_V1_0    4027  // BigTreeTech SKR Mini MZ V1.0 (STM32F103RC)
320
+#define BOARD_BTT_SKR_E3_DIP          4028  // BigTreeTech SKR E3 DIP V1.0 (STM32F103RC / STM32F103RE)
321
+#define BOARD_JGAURORA_A5S_A1         4029  // JGAurora A5S A1 (STM32F103ZET6)
322
+#define BOARD_FYSETC_AIO_II           4030  // FYSETC AIO_II
323
+#define BOARD_FYSETC_CHEETAH          4031  // FYSETC Cheetah
324
+#define BOARD_FYSETC_CHEETAH_V12      4032  // FYSETC Cheetah V1.2
325
+#define BOARD_LONGER3D_LK             4033  // Alfawise U20/U20+/U30 (Longer3D LK1/2) / STM32F103VET6
326
+#define BOARD_CCROBOT_MEEB_3DP        4034  // ccrobot-online.com MEEB_3DP (STM32F103RC)
327
+#define BOARD_CHITU3D_V5              4035  // Chitu3D TronXY X5SA V5 Board
328
+#define BOARD_CHITU3D_V6              4036  // Chitu3D TronXY X5SA V5 Board
329
+#define BOARD_CREALITY_V4             4037  // Creality v4.x (STM32F103RE)
330
+#define BOARD_CREALITY_V427           4038  // Creality v4.2.7 (STM32F103RE)
331
+#define BOARD_TRIGORILLA_PRO          4039  // Trigorilla Pro (STM32F103ZET6)
332
+#define BOARD_FLY_MINI                4040  // FLY MINI (STM32F103RCT6)
333
+#define BOARD_FLSUN_HISPEED           4041  // FLSUN HiSpeedV1 (STM32F103VET6)
334
+#define BOARD_BEAST                   4042  // STM32F103RET6 Libmaple-based controller
333 335
 
334 336
 //
335 337
 // ARM Cortex-M4F

+ 4
- 0
Marlin/src/pins/pins.h View File

@@ -552,8 +552,12 @@
552 552
   #include "stm32f1/pins_MKS_ROBIN_PRO.h"       // STM32F1                                env:mks_robin_pro
553 553
 #elif MB(MKS_ROBIN_E3)
554 554
   #include "stm32f1/pins_MKS_ROBIN_E3.h"        // STM32F1                                env:mks_robin_e3
555
+#elif MB(MKS_ROBIN_E3_V1_1)
556
+  #include "stm32f1/pins_MKS_ROBIN_E3_V1_1.h"   // STM32F1                                env:mks_robin_e3
555 557
 #elif MB(MKS_ROBIN_E3D)
556 558
   #include "stm32f1/pins_MKS_ROBIN_E3D.h"       // STM32F1                                env:mks_robin_e3
559
+#elif MB(MKS_ROBIN_E3D_V1_1)
560
+  #include "stm32f1/pins_MKS_ROBIN_E3D_V1_1.h"  // STM32F1                                env:mks_robin_e3
557 561
 #elif MB(MKS_ROBIN_E3P)
558 562
   #include "stm32f1/pins_MKS_ROBIN_E3P.h"       // STM32F1                                env:mks_robin_e3p
559 563
 #elif MB(BTT_SKR_MINI_V1_1)

+ 67
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D_V1_1.h View File

@@ -0,0 +1,67 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 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
+/**
25
+ * MKS Robin E3D v1.1 (STM32F103RCT6) board pin assignments
26
+ */
27
+
28
+#if HOTENDS > 1 || E_STEPPERS > 1
29
+  #error "MKS Robin E3D v1.1 only supports one hotend / E-stepper. Comment out this line to continue."
30
+#endif
31
+
32
+#ifndef BOARD_INFO_NAME
33
+  #define BOARD_INFO_NAME "MKS Robin E3D V1.1"
34
+#endif
35
+
36
+//
37
+// Steppers
38
+//
39
+#ifndef X_CS_PIN
40
+  #define X_CS_PIN                          PC7
41
+#endif
42
+#ifndef Y_CS_PIN
43
+  #define Y_CS_PIN                          PD2
44
+#endif
45
+#ifndef Z_CS_PIN
46
+  #define Z_CS_PIN                          PC12
47
+#endif
48
+#ifndef E0_CS_PIN
49
+  #define E0_CS_PIN                         PC11
50
+#endif
51
+
52
+//
53
+// Software SPI pins for TMC2130 stepper drivers
54
+//
55
+#if ENABLED(TMC_USE_SW_SPI)
56
+  #ifndef TMC_SW_MOSI
57
+    #define TMC_SW_MOSI                     PB15
58
+  #endif
59
+  #ifndef TMC_SW_MISO
60
+    #define TMC_SW_MISO                     PB14
61
+  #endif
62
+  #ifndef TMC_SW_SCK
63
+    #define TMC_SW_SCK                      PB13
64
+  #endif
65
+#endif
66
+
67
+#include "pins_MKS_ROBIN_E3_V1_1_common.h"

+ 36
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_V1_1.h View File

@@ -0,0 +1,36 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 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
+/**
25
+ * MKS Robin E3 v1.1 (STM32F103RCT6) board pin assignments
26
+ */
27
+
28
+#if HOTENDS > 1 || E_STEPPERS > 1
29
+  #error "MKS Robin E3 v1.1 only supports one hotend / E-stepper. Comment out this line to continue."
30
+#endif
31
+
32
+#ifndef BOARD_INFO_NAME
33
+  #define BOARD_INFO_NAME "MKS Robin E3 V1.1"
34
+#endif
35
+
36
+#include "pins_MKS_ROBIN_E3_V1_1_common.h"

+ 39
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_V1_1_common.h View File

@@ -0,0 +1,39 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 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
+//
25
+// EEPROM
26
+//
27
+// Onboard I2C EEPROM
28
+#if NO_EEPROM_SELECTED
29
+  #define I2C_EEPROM
30
+  #define MARLIN_EEPROM_SIZE                0x1000// 4KB
31
+  #undef NO_EEPROM_SELECTED
32
+#endif
33
+
34
+#define Z_STEP_PIN                          PC14
35
+#define Z_DIR_PIN                           PC15
36
+
37
+#define BTN_ENC_EN                            -1
38
+
39
+#include "pins_MKS_ROBIN_E3_common.h"

+ 7
- 3
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_common.h View File

@@ -70,8 +70,12 @@
70 70
 #define Y_DIR_PIN                           PB9
71 71
 #define Y_ENABLE_PIN                        PB12
72 72
 
73
-#define Z_STEP_PIN                          PB7
74
-#define Z_DIR_PIN                           PB6
73
+#ifndef Z_STEP_PIN
74
+  #define Z_STEP_PIN                        PB7
75
+#endif
76
+#ifndef Z_DIR_PIN
77
+  #define Z_DIR_PIN                         PB6
78
+#endif
75 79
 #define Z_ENABLE_PIN                        PB8
76 80
 
77 81
 #define E0_STEP_PIN                         PB4
@@ -161,7 +165,7 @@
161 165
       #define LCD_PINS_D6                   PC4
162 166
       #define LCD_PINS_D7                   PC5
163 167
 
164
-      #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
168
+      #if !defined(BTN_ENC_EN) && ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
165 169
         #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
166 170
       #endif
167 171
 

Loading…
Cancel
Save