瀏覽代碼

BTT SKR Mini E3 V2 (#18088)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
thisiskeithb 4 年之前
父節點
當前提交
3430d45f53
沒有連結到貢獻者的電子郵件帳戶。

+ 13
- 12
Marlin/src/core/boards.h 查看文件

@@ -292,18 +292,19 @@
292 292
 #define BOARD_BTT_SKR_MINI_V1_1       4013  // BigTreeTech SKR Mini v1.1 (STM32F103RC)
293 293
 #define BOARD_BTT_SKR_MINI_E3_V1_0    4014  // BigTreeTech SKR Mini E3 (STM32F103RC)
294 294
 #define BOARD_BTT_SKR_MINI_E3_V1_2    4015  // BigTreeTech SKR Mini E3 V1.2 (STM32F103RC)
295
-#define BOARD_BTT_SKR_E3_DIP          4016  // BigTreeTech SKR E3 DIP V1.0 (STM32F103RC / STM32F103RE)
296
-#define BOARD_JGAURORA_A5S_A1         4017  // JGAurora A5S A1 (STM32F103ZET6)
297
-#define BOARD_FYSETC_AIO_II           4018  // FYSETC AIO_II
298
-#define BOARD_FYSETC_CHEETAH          4019  // FYSETC Cheetah
299
-#define BOARD_FYSETC_CHEETAH_V12      4020  // FYSETC Cheetah V1.2
300
-#define BOARD_LONGER3D_LK             4021  // Alfawise U20/U20+/U30 (Longer3D LK1/2) / STM32F103VET6
301
-#define BOARD_GTM32_MINI              4022  // STM32F103VET6 controller
302
-#define BOARD_GTM32_MINI_A30          4023  // STM32F103VET6 controller
303
-#define BOARD_GTM32_REV_B             4024  // STM32F103VET6 controller
304
-#define BOARD_MKS_ROBIN_E3D           4025  // MKS Robin E3D (STM32F103RCT6)
305
-#define BOARD_MKS_ROBIN_E3            4026  // MKS Robin E3 (STM32F103RCT6)
306
-#define BOARD_MALYAN_M300             4027  // STM32F070-based delta
295
+#define BOARD_BTT_SKR_MINI_E3_V2_0    4016  // BigTreeTech SKR Mini E3 V2.0 (STM32F103RC)
296
+#define BOARD_BTT_SKR_E3_DIP          4017  // BigTreeTech SKR E3 DIP V1.0 (STM32F103RC / STM32F103RE)
297
+#define BOARD_JGAURORA_A5S_A1         4018  // JGAurora A5S A1 (STM32F103ZET6)
298
+#define BOARD_FYSETC_AIO_II           4019  // FYSETC AIO_II
299
+#define BOARD_FYSETC_CHEETAH          4020  // FYSETC Cheetah
300
+#define BOARD_FYSETC_CHEETAH_V12      4021  // FYSETC Cheetah V1.2
301
+#define BOARD_LONGER3D_LK             4022  // Alfawise U20/U20+/U30 (Longer3D LK1/2) / STM32F103VET6
302
+#define BOARD_GTM32_MINI              4023  // STM32F103VET6 controller
303
+#define BOARD_GTM32_MINI_A30          4024  // STM32F103VET6 controller
304
+#define BOARD_GTM32_REV_B             4025  // STM32F103VET6 controller
305
+#define BOARD_MKS_ROBIN_E3D           4026  // MKS Robin E3D (STM32F103RCT6)
306
+#define BOARD_MKS_ROBIN_E3            4027  // MKS Robin E3 (STM32F103RCT6)
307
+#define BOARD_MALYAN_M300             4028  // STM32F070-based delta
307 308
 
308 309
 //
309 310
 // ARM Cortex-M4F

+ 2
- 0
Marlin/src/pins/pins.h 查看文件

@@ -512,6 +512,8 @@
512 512
   #include "stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h"  // STM32F1                              env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
513 513
 #elif MB(BTT_SKR_MINI_E3_V1_2)
514 514
   #include "stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h"  // STM32F1                              env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
515
+#elif MB(BTT_SKR_MINI_E3_V2_0)
516
+  #include "stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h"  // STM32F1                              env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
515 517
 #elif MB(BTT_SKR_E3_DIP)
516 518
   #include "stm32f1/pins_BTT_SKR_E3_DIP.h"      // STM32F1                                env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
517 519
 #elif MB(JGAURORA_A5S_A1)

+ 36
- 28
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3.h 查看文件

@@ -92,37 +92,55 @@
92 92
 //
93 93
 #define HEATER_0_PIN                        PC8   // "HE"
94 94
 #define HEATER_BED_PIN                      PC9   // "HB"
95
-#define FAN_PIN                             PA8   // "FAN0"
95
+
96
+#ifdef SKR_MINI_E3_V2
97
+  #define FAN_PIN                           PC6
98
+#else
99
+  #define FAN_PIN                           PA8   // "FAN0"
100
+#endif
96 101
 
97 102
 //
98 103
 // USB connect control
99 104
 //
100
-#define USB_CONNECT_PIN                     PC13
105
+#ifdef SKR_MINI_E3_V2
106
+  #define USB_CONNECT_PIN                   PA14
107
+#else
108
+  #define USB_CONNECT_PIN                   PC13
109
+#endif
110
+
101 111
 #define USB_CONNECT_INVERTING false
102 112
 
103 113
 /**
104
- *                 _____
105
- *             5V | 1 2 | GND
106
- *  (LCD_EN) PB7  | 3 4 | PB8  (LCD_RS)
107
- *  (LCD_D4) PB9  | 5 6   PA10 (BTN_EN2)
108
- *          RESET | 7 8 | PA9  (BTN_EN1)
109
- * (BTN_ENC) PB6  | 9 10| PB5  (BEEPER)
110
- *                 -----
111
- *                 EXP1
114
+ *        SKR Mini E3 V1.0, V1.2                      SKR Mini E3 V2.0
115
+ *                _____                                     _____
116
+ *            5V | 1 2 | GND                            5V | 1 2 | GND
117
+ *  (LCD_EN) PB7 | 3 4 | PB8  (LCD_RS)       (LCD_EN) PB15 | 3 4 | PB8  (LCD_RS)
118
+ *  (LCD_D4) PB9 | 5 6   PA10 (BTN_EN2)      (LCD_D4) PB9  | 5 6   PA10 (BTN_EN2)
119
+ *         RESET | 7 8 | PA9  (BTN_EN1)              RESET | 7 8 | PA9  (BTN_EN1)
120
+ * (BTN_ENC) PB6 | 9 10| PB5  (BEEPER)      (BTN_ENC) PA15 | 9 10| PB5  (BEEPER)
121
+ *                -----                                     -----
122
+ *                EXP1                                      EXP1
112 123
  */
124
+#ifdef SKR_MINI_E3_V2
125
+  #define EXP1_9                            PA15
126
+  #define EXP1_3                            PB15
127
+#else
128
+  #define EXP1_9                            PB6
129
+  #define EXP1_3                            PB7
130
+#endif
113 131
 
114 132
 #if HAS_SPI_LCD
115 133
 
116 134
   #if ENABLED(CR10_STOCKDISPLAY)
117 135
 
118 136
     #define BEEPER_PIN                      PB5
137
+    #define BTN_ENC                       EXP1_9
119 138
 
120
-    #define BTN_ENC                         PB6
121 139
     #define BTN_EN1                         PA9
122 140
     #define BTN_EN2                         PA10
123 141
 
124 142
     #define LCD_PINS_RS                     PB8
125
-    #define LCD_PINS_ENABLE                 PB7
143
+    #define LCD_PINS_ENABLE               EXP1_3
126 144
     #define LCD_PINS_D4                     PB9
127 145
 
128 146
   #elif ENABLED(ZONESTAR_LCD)                     // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
@@ -130,7 +148,7 @@
130 148
     #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
131 149
 
132 150
     #define LCD_PINS_RS                     PB9
133
-    #define LCD_PINS_ENABLE                 PB6
151
+    #define LCD_PINS_ENABLE               EXP1_9
134 152
     #define LCD_PINS_D4                     PB8
135 153
     #define LCD_PINS_D5                     PA10
136 154
     #define LCD_PINS_D6                     PA9
@@ -139,25 +157,15 @@
139 157
 
140 158
   #elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
141 159
 
142
-    /** Creality Ender-2 display pinout
143
-     *                   _____
144
-     *               5V | 1 2 | GND
145
-     *      (MOSI) PB7  | 3 4 | PB8  (LCD_RS)
146
-     *    (LCD_A0) PB9  | 5 6   PA10 (BTN_EN2)
147
-     *            RESET | 7 8 | PA9  (BTN_EN1)
148
-     *   (BTN_ENC) PB6  | 9 10| PB5  (SCK)
149
-     *                   -----
150
-     *                    EXP1
151
-     */
152
-
153
-    #define BTN_ENC                         PB6
160
+    #define BTN_ENC                       EXP1_9
154 161
     #define BTN_EN1                         PA9
155 162
     #define BTN_EN2                         PA10
156 163
 
157 164
     #define DOGLCD_CS                       PB8
158 165
     #define DOGLCD_A0                       PB9
159 166
     #define DOGLCD_SCK                      PB5
160
-    #define DOGLCD_MOSI                     PB7
167
+    #define DOGLCD_MOSI                   EXP1_3
168
+
161 169
     #define FORCE_SOFT_SPI
162 170
     #define LCD_BACKLIGHT_PIN               -1
163 171
 
@@ -171,7 +179,7 @@
171 179
 
172 180
   #error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
173 181
 
174
-  /** FYSECT TFT TFT81050 display pinout
182
+  /** FYSETC TFT TFT81050 display pinout
175 183
    *
176 184
    *               Board                                      Display
177 185
    *               _____                                       _____
@@ -202,7 +210,7 @@
202 210
 
203 211
   #define CLCD_SPI_BUS 1                          // SPI1 connector
204 212
 
205
-  #define BEEPER_PIN                        PB6
213
+  #define BEEPER_PIN                      EXP1_9
206 214
 
207 215
   #define CLCD_MOD_RESET                    PA9
208 216
   #define CLCD_SPI_CS                       PB8

+ 59
- 0
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h 查看文件

@@ -0,0 +1,59 @@
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 <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#define SKR_MINI_E3_V2
25
+
26
+// Onboard I2C EEPROM
27
+#if NO_EEPROM_SELECTED
28
+  #define I2C_EEPROM
29
+  #define MARLIN_EEPROM_SIZE 0x1000                 // 4KB
30
+  #undef NO_EEPROM_SELECTED
31
+#endif
32
+
33
+#include "pins_BTT_SKR_MINI_E3.h"
34
+
35
+#define BOARD_INFO_NAME "BIGTREE SKR Mini E3 V2.0"
36
+
37
+// Release PA13/PA14 (led, usb control) from SWD pins
38
+#define DISABLE_DEBUG
39
+
40
+#define NEOPIXEL_PIN                       PA8   // LED driving pin
41
+
42
+#define PS_ON_PIN                          PC13  // Power Supply Control
43
+
44
+#define FAN1_PIN                           PC7
45
+
46
+#ifndef CONTROLLER_FAN_PIN
47
+  #define CONTROLLER_FAN_PIN               FAN1_PIN
48
+#endif
49
+
50
+/**
51
+ * TMC220x stepper drivers
52
+ * Hardware serial communication ports.
53
+ */
54
+#if HAS_TMC_UART
55
+  #define X_HARDWARE_SERIAL  Serial4
56
+  #define Y_HARDWARE_SERIAL  Serial4
57
+  #define Z_HARDWARE_SERIAL  Serial4
58
+  #define E0_HARDWARE_SERIAL Serial4
59
+#endif

Loading…
取消
儲存