ソースを参照

BigTreeTech SKR Mini v1.1 (#14041)

yangwenxiong 5年前
コミット
b0a4ea79b8

+ 1
- 0
Marlin/src/core/boards.h ファイルの表示

@@ -245,6 +245,7 @@
245 245
 #define BOARD_GTM32_PRO_VB     1805   // STM32f103VET6 controller
246 246
 #define BOARD_MORPHEUS         1806   // STM32F103C8/STM32F103CB Libmaple based stm32f1 controller
247 247
 #define BOARD_MKS_ROBIN        1808   // MKS Robin / STM32F103ZET6
248
+#define BOARD_BIGTREE_SKR_MINI_V1_1 1814 // STM32F103RC
248 249
 
249 250
 //
250 251
 // STM32 ARM Cortex-M4F

+ 2
- 0
Marlin/src/pins/pins.h ファイルの表示

@@ -414,6 +414,8 @@
414 414
   #include "pins_STM32F1R.h"          // STM32F1                                    env:STM32F1
415 415
 #elif MB(STM3R_MINI)
416 416
   #include "pins_STM3R_MINI.h"        // STM32F1                                    env:STM32F1
417
+#elif MB(BIGTREE_SKR_MINI_V1_1)
418
+  #include "pins_BIGTREE_SKR_MINI_V1_1.h" // STM32F1                                env:BIGTREE_SKR_MINI
417 419
 #elif MB(MALYAN_M200)
418 420
   #include "pins_MALYAN_M200.h"       // STM32F1                                    env:malyanm200
419 421
 #elif MB(CHITU3D)

+ 134
- 0
Marlin/src/pins/pins_BIGTREE_SKR_MINI_V1_1.h ファイルの表示

@@ -0,0 +1,134 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 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
+
23
+#ifndef TARGET_STM32F1
24
+  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
25
+#endif
26
+
27
+#ifndef BOARD_NAME
28
+  #define BOARD_NAME "BIGTREE SKR mini V1.1"
29
+#endif
30
+
31
+// Ignore temp readings during develpment.
32
+//#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
33
+
34
+//
35
+// Limit Switches
36
+//
37
+#define X_MIN_PIN          PC2
38
+#define X_MAX_PIN          PA2
39
+#define Y_MIN_PIN          PC1
40
+#define Y_MAX_PIN          PA1
41
+#define Z_MIN_PIN          PC0
42
+#define Z_MAX_PIN          PC3
43
+
44
+//
45
+// Steppers
46
+//
47
+
48
+/**
49
+ * TODO: Currently using same Enable pin for all steppers.
50
+ */
51
+
52
+#define X_STEP_PIN         PC6
53
+#define X_DIR_PIN          PC7
54
+#define X_ENABLE_PIN       PB15
55
+
56
+#define Y_STEP_PIN         PB13
57
+#define Y_DIR_PIN          PB14
58
+#define Y_ENABLE_PIN       PB12
59
+
60
+#define Z_STEP_PIN         PB10
61
+#define Z_DIR_PIN          PB11
62
+#define Z_ENABLE_PIN       PB2
63
+
64
+#define E0_STEP_PIN        PC5
65
+#define E0_DIR_PIN         PB0
66
+#define E0_ENABLE_PIN      PC4
67
+
68
+#if ENABLED(TMC_USE_SW_SPI)
69
+  #define TMC_SW_SCK       PB3
70
+  #define TMC_SW_MISO      PB4
71
+  #define TMC_SW_MOSI      PB5
72
+#endif
73
+
74
+//
75
+// Heaters / Fans
76
+//
77
+#define HEATER_0_PIN       PA8
78
+#define FAN_PIN            PC8
79
+#define HEATER_BED_PIN     PC9
80
+
81
+//
82
+// Temperature Sensors
83
+//
84
+#define TEMP_BED_PIN         PB1   // Analog Input
85
+#define TEMP_0_PIN           PA0   // Analog Input
86
+
87
+//
88
+// LCD Pins
89
+//
90
+
91
+/**
92
+ *               _____                                             _____
93
+ *           NC | · · | GND                                    5V | · · | GND
94
+ *        RESET | · · | 1.31(SD_DETECT)             (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
95
+ *   (MOSI)0.18 | · · | 3.25(BTN_EN2)               (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
96
+ *  (SD_SS)0.16 | · · | 3.26(BTN_EN1)               (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
97
+ *    (SCK)0.15 | · · | 0.17(MISO)                 (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
98
+ *                ̄ ̄                                                ̄ ̄
99
+ *               EXP2                                              EXP1
100
+ */
101
+
102
+#if ENABLED(ULTRA_LCD)
103
+
104
+  #define BEEPER_PIN       PC10
105
+  #define BTN_ENC          PC11
106
+  #define LCD_PINS_RS      PC12
107
+
108
+  #define BTN_EN1          PD2
109
+  #define BTN_EN2          PB8
110
+
111
+  #define LCD_PINS_ENABLE  PB6
112
+  #define LCD_PINS_D4      PC13
113
+
114
+  #if ENABLED(ULTIPANEL)
115
+    #define LCD_PINS_D5    PB7
116
+    #define LCD_PINS_D6    PC15
117
+    #define LCD_PINS_D7    PC14
118
+  #endif
119
+
120
+#endif // ULTRA_LCD
121
+
122
+//
123
+// SD Card
124
+//
125
+
126
+// Marlin uses the SD drive attached to the LCD
127
+//#define STM32_SD_LCD
128
+
129
+#ifdef STM32_SD_LCD
130
+  #define SD_DETECT_PIN    PB9
131
+  #define ENABLE_SPI3
132
+#else
133
+  #define SD_DETECT_PIN    PA3
134
+#endif

+ 14
- 0
buildroot/share/PlatformIO/ldscripts/STM32F1_SKR_MINI.ld ファイルの表示

@@ -0,0 +1,14 @@
1
+MEMORY
2
+{
3
+  ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K - 40
4
+  rom (rx)  : ORIGIN = 0x08007000, LENGTH = 256K - 28K
5
+}
6
+
7
+/* Provide memory region aliases for common.inc */
8
+REGION_ALIAS("REGION_TEXT", rom);
9
+REGION_ALIAS("REGION_DATA", ram);
10
+REGION_ALIAS("REGION_BSS", ram);
11
+REGION_ALIAS("REGION_RODATA", rom);
12
+
13
+/* Let common.inc handle the real work. */
14
+INCLUDE common.inc

+ 8
- 0
buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py ファイルの表示

@@ -0,0 +1,8 @@
1
+Import("env")
2
+
3
+# Relocate firmware from 0x08000000 to 0x08007000
4
+for define in env['CPPDEFINES']:
5
+    if define[0] == "VECT_TAB_ADDR":
6
+        env['CPPDEFINES'].remove(define)
7
+env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08007000"))
8
+env.Replace(LDSCRIPT_PATH="buildroot/share/PlatformIO/ldscripts/STM32F1_SKR_MINI.ld")

+ 26
- 0
platformio.ini ファイルの表示

@@ -273,6 +273,32 @@ src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
273 273
 monitor_speed = 250000
274 274
 
275 275
 #
276
+# BIGTREE_SKR_MINI
277
+#
278
+[env:BIGTREE_SKR_MINI]
279
+platform      = ststm32
280
+framework     = arduino
281
+board         = genericSTM32F103RC
282
+extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
283
+build_flags   = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
284
+  ${common.build_flags}
285
+  -g
286
+lib_deps      = ${common.lib_deps}
287
+lib_ignore    = U8glib-HAL
288
+  c1921b4
289
+  libf3c
290
+  lib066
291
+  Adafruit NeoPixel_ID28
292
+  Adafruit NeoPixel
293
+  libf3e
294
+  TMC26XStepper
295
+lib_ldf_mode  = 1
296
+src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
297
+monitor_speed = 115200
298
+upload_protocol = stlink
299
+debug_tool = stlink
300
+
301
+#
276 302
 # STM32F4
277 303
 #
278 304
 [env:STM32F4]

読み込み中…
キャンセル
保存