Browse Source

BigTreeTech SKR E3 DIP (#14638)

Msq001 6 years ago
parent
commit
6920b7fe91
4 changed files with 191 additions and 5 deletions
  1. 5
    4
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 183
    0
      Marlin/src/pins/stm32/pins_BIGTREE_SKR_E3_DIP.h
  4. 1
    1
      platformio.ini

+ 5
- 4
Marlin/src/core/boards.h View File

@@ -261,10 +261,11 @@
261 261
 #define BOARD_MKS_ROBIN_NANO          4007  // MKS Robin Nano (STM32F103VET6)
262 262
 #define BOARD_BIGTREE_SKR_MINI_V1_1   4008  // BigTreeTech SKR Mini v1.1 (STM32F103RC)
263 263
 #define BOARD_BIGTREE_SKR_MINI_E3     4009  // BigTreeTech SKR Mini E3 (STM32F103RC)
264
-#define BOARD_JGAURORA_A5S_A1         4010  // JGAurora A5S A1 (STM32F103ZET6)
265
-#define BOARD_FYSETC_AIO_II           4011  // FYSETC AIO_II
266
-#define BOARD_FYSETC_CHEETAH          4012  // FYSETC CHEETAH
267
-#define BOARD_LONGER3D_LK             4013  // Alfawise U20/U20+/U30 (Longer3D LK1/2) / STM32F103VET6
264
+#define BOARD_BIGTREE_SKR_E3_DIP      4010  // BigTreeTech SKR E3 DIP V1.0 (STM32F103RC)
265
+#define BOARD_JGAURORA_A5S_A1         4011  // JGAurora A5S A1 (STM32F103ZET6)
266
+#define BOARD_FYSETC_AIO_II           4012  // FYSETC AIO_II
267
+#define BOARD_FYSETC_CHEETAH          4013  // FYSETC Cheetah
268
+#define BOARD_LONGER3D_LK             4014  // Alfawise U20/U20+/U30 (Longer3D LK1/2) / STM32F103VET6
268 269
 
269 270
 //
270 271
 // ARM Cortex-M4F

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

@@ -444,6 +444,8 @@
444 444
   #include "stm32/pins_BIGTREE_SKR_MINI_V1_1.h" // STM32F1                                env:BIGTREE_SKR_MINI
445 445
 #elif MB(BIGTREE_SKR_MINI_E3)
446 446
   #include "stm32/pins_BIGTREE_SKR_MINI_E3.h"   // STM32F1                                env:BIGTREE_SKR_MINI
447
+#elif MB(BIGTREE_SKR_E3_DIP)
448
+  #include "stm32/pins_BIGTREE_SKR_E3_DIP.h"    // STM32F1                                env:BIGTREE_SKR_MINI
447 449
 #elif MB(MALYAN_M200)
448 450
   #include "stm32/pins_MALYAN_M200.h"           // STM32F1                                env:malyanm200
449 451
 #elif MB(CHITU3D)

+ 183
- 0
Marlin/src/pins/stm32/pins_BIGTREE_SKR_E3_DIP.h View File

@@ -0,0 +1,183 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2019 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
+#ifndef TARGET_STM32F1
25
+  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
26
+#endif
27
+
28
+#define BOARD_NAME "BIGTREE SKR E3 DIP V1.0"
29
+
30
+// Release PB3/PB4 (TMC_SW Pins) from JTAG pins
31
+#define DISABLE_JTAG
32
+
33
+// Ignore temp readings during development.
34
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
35
+
36
+//
37
+// Servos
38
+//
39
+#define SERVO0_PIN         PA1
40
+
41
+//
42
+// Limit Switches
43
+//
44
+#define X_STOP_PIN         PC1
45
+#define Y_STOP_PIN         PC0
46
+#define Z_STOP_PIN         PC15
47
+
48
+//
49
+// Z Probe must be this pin
50
+//
51
+#define Z_MIN_PROBE_PIN    PC14
52
+
53
+//
54
+// Filament Runout Sensor
55
+//
56
+#ifndef FIL_RUNOUT_PIN
57
+  #define FIL_RUNOUT_PIN   PC2
58
+#endif
59
+
60
+//
61
+// Steppers
62
+//
63
+#define X_ENABLE_PIN       PC7
64
+#define X_STEP_PIN         PC6
65
+#define X_DIR_PIN          PB15
66
+#ifndef X_CS_PIN
67
+  #define X_CS_PIN         PC10
68
+#endif
69
+
70
+#define Y_ENABLE_PIN       PB14
71
+#define Y_STEP_PIN         PB13
72
+#define Y_DIR_PIN          PB12
73
+#ifndef Y_CS_PIN
74
+  #define Y_CS_PIN         PC11
75
+#endif
76
+
77
+#define Z_ENABLE_PIN       PB11
78
+#define Z_STEP_PIN         PB10
79
+#define Z_DIR_PIN          PB2
80
+#ifndef Z_CS_PIN
81
+  #define Z_CS_PIN         PC12
82
+#endif
83
+
84
+#define E0_ENABLE_PIN      PB1
85
+#define E0_STEP_PIN        PB0
86
+#define E0_DIR_PIN         PC5  
87
+#ifndef E0_CS_PIN
88
+  #define E0_CS_PIN        PD2
89
+#endif
90
+
91
+//
92
+// Software SPI pins for TMC2130 stepper drivers
93
+//
94
+#if ENABLED(TMC_USE_SW_SPI)
95
+  #ifndef TMC_SW_MOSI
96
+    #define TMC_SW_MOSI    PB5
97
+  #endif
98
+  #ifndef TMC_SW_MISO
99
+    #define TMC_SW_MISO    PB4
100
+  #endif
101
+  #ifndef TMC_SW_SCK
102
+    #define TMC_SW_SCK     PB3
103
+  #endif
104
+#endif
105
+
106
+#if HAS_TMC220x
107
+  /**
108
+   * TMC2208/TMC2209 stepper drivers
109
+   *
110
+   * Hardware serial communication ports.
111
+   * If undefined software serial is used according to the pins below
112
+   */
113
+  //#define X_HARDWARE_SERIAL  Serial1
114
+  //#define Y_HARDWARE_SERIAL  Serial1
115
+  //#define Z_HARDWARE_SERIAL  Serial1
116
+  //#define E0_HARDWARE_SERIAL Serial1
117
+
118
+  //
119
+  // Software serial
120
+  //
121
+  #define X_SERIAL_TX_PIN  PC10
122
+  #define X_SERIAL_RX_PIN  PC10
123
+
124
+  #define Y_SERIAL_TX_PIN  PC11
125
+  #define Y_SERIAL_RX_PIN  PC11
126
+
127
+  #define Z_SERIAL_TX_PIN  PC12
128
+  #define Z_SERIAL_RX_PIN  PC12
129
+
130
+  #define E0_SERIAL_TX_PIN PD2
131
+  #define E0_SERIAL_RX_PIN PD2
132
+
133
+#endif
134
+
135
+//
136
+// Temperature Sensors
137
+//
138
+#define TEMP_0_PIN         PA0   // Analog Input
139
+#define TEMP_BED_PIN       PC3   // Analog Input
140
+
141
+//
142
+// Heaters / Fans
143
+//
144
+#define HEATER_0_PIN       PC8   // EXTRUDER
145
+#define HEATER_BED_PIN     PC9   // BED
146
+#define FAN_PIN            PA8
147
+
148
+//
149
+// USB connect control
150
+//
151
+#define USB_CONNECT        PC13
152
+#define USB_CONNECT_INVERTING false
153
+
154
+#define SD_DETECT_PIN      PC4
155
+
156
+/**
157
+ *                 _____
158
+ *             5V | · · | GND
159
+ *  (LCD_EN) PB7  | · · | PB8  (LCD_RS)
160
+ *  (LCD_D4) PB9  | · · | PA10 (BTN_EN2)
161
+ *          RESET | · · | PA9  (BTN_EN1)
162
+ * (BTN_ENC) PB6  | · · | PA15 (BEEPER)
163
+ *                 -----
164
+ *                 EXP1
165
+ */
166
+#if HAS_SPI_LCD
167
+  #define BEEPER_PIN       PA15
168
+  #define BTN_ENC          PB6
169
+
170
+  #if ENABLED(CR10_STOCKDISPLAY)
171
+    #define LCD_PINS_RS    PB8
172
+
173
+    #define BTN_EN1        PA9
174
+    #define BTN_EN2        PA10
175
+
176
+    #define LCD_PINS_ENABLE PB7
177
+    #define LCD_PINS_D4    PB9
178
+
179
+  #else
180
+    #error "Only CR10_STOCKDISPLAY is currently supported on the BIGTREE_SKR_E3_DIP."
181
+  #endif
182
+
183
+#endif // HAS_SPI_LCD

+ 1
- 1
platformio.ini View File

@@ -303,7 +303,7 @@ debug_tool    = stlink
303 303
 upload_protocol = serial
304 304
 
305 305
 #
306
-# BIGTREE_SKR_MINI
306
+# BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
307 307
 #
308 308
 [env:BIGTREE_SKR_MINI]
309 309
 platform      = ststm32

Loading…
Cancel
Save