Kaynağa Gözat

⚡️ BTT002 (STM32F407VET6) variant, MK3_FAN_PINS flag (#23093)

Keith Bennett 3 yıl önce
ebeveyn
işleme
cee50552ab
No account linked to committer's email address

+ 1
- 1
Marlin/src/pins/pins.h Dosyayı Görüntüle

@@ -616,7 +616,7 @@
616 616
 #elif MB(BTT_GTR_V1_0)
617 617
   #include "stm32f4/pins_BTT_GTR_V1_0.h"        // STM32F4                                env:BIGTREE_GTR_V1_0 env:BIGTREE_GTR_V1_0_usb_flash_drive
618 618
 #elif MB(BTT_BTT002_V1_0)
619
-  #include "stm32f4/pins_BTT_BTT002_V1_0.h"     // STM32F4                                env:BIGTREE_BTT002
619
+  #include "stm32f4/pins_BTT_BTT002_V1_0.h"     // STM32F4                                env:BIGTREE_BTT002 env:BIGTREE_BTT002_VET6
620 620
 #elif MB(BTT_E3_RRF)
621 621
   #include "stm32f4/pins_BTT_E3_RRF.h"          // STM32F4                                env:BIGTREE_E3_RRF
622 622
 #elif MB(BTT_SKR_V2_0_REV_A)

+ 18
- 2
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h Dosyayı Görüntüle

@@ -29,6 +29,8 @@
29 29
 
30 30
 #define BOARD_INFO_NAME "BTT BTT002 V1.0"
31 31
 
32
+//#define MK3_FAN_PINS
33
+
32 34
 #define USES_DIAG_PINS
33 35
 
34 36
 // Ignore temp readings during development.
@@ -169,8 +171,22 @@
169 171
 //
170 172
 #define HEATER_0_PIN                        PE6   // Heater0
171 173
 #define HEATER_BED_PIN                      PE5   // Hotbed
172
-#define FAN_PIN                             PB8   // Fan1
173
-#define FAN1_PIN                            PB9   // Fan0
174
+
175
+#ifndef FAN_PIN
176
+  #ifdef MK3_FAN_PINS
177
+    #define FAN_PIN                         PB8   // Fan1
178
+  #else
179
+    #define FAN_PIN                         PB9   // Fan0
180
+  #endif
181
+#endif
182
+
183
+#ifndef FAN1_PIN
184
+  #ifdef MK3_FAN_PINS
185
+    #define FAN1_PIN                        PB9   // Fan0
186
+  #else
187
+    #define FAN1_PIN                        PB8   // Fan1
188
+  #endif
189
+#endif
174 190
 
175 191
 /**
176 192
  * -----------------------------------BTT002 V1.0----------------------------------------

+ 46
- 0
buildroot/share/PlatformIO/boards/marlin_BigTree_BTT002_VET6.json Dosyayı Görüntüle

@@ -0,0 +1,46 @@
1
+{
2
+  "build": {
3
+    "core": "stm32",
4
+    "cpu": "cortex-m4",
5
+    "extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
6
+    "f_cpu": "168000000L",
7
+    "hwids": [
8
+      [
9
+        "0x1EAF",
10
+        "0x0003"
11
+      ],
12
+      [
13
+        "0x0483",
14
+        "0x3748"
15
+      ]
16
+    ],
17
+    "mcu": "stm32f407vet6",
18
+    "variant": "MARLIN_BIGTREE_BTT002"
19
+  },
20
+  "debug": {
21
+    "jlink_device": "STM32F407VE",
22
+    "openocd_target": "stm32f4x",
23
+    "svd_path": "STM32F40x.svd"
24
+  },
25
+  "frameworks": [
26
+    "arduino"
27
+  ],
28
+  "name": "STM32F407VE (192k RAM. 512k Flash)",
29
+  "upload": {
30
+    "disable_flushing": false,
31
+    "maximum_ram_size": 131072,
32
+    "maximum_size": 524288,
33
+    "protocol": "stlink",
34
+    "protocols": [
35
+      "stlink",
36
+      "dfu",
37
+      "jlink"
38
+    ],
39
+    "offset_address": "0x8008000",
40
+    "require_upload_port": true,
41
+    "use_1200bps_touch": false,
42
+    "wait_for_upload_port": false
43
+  },
44
+  "url": "https://www.st.com/en/microcontrollers-microprocessors/stm32f407ve.html",
45
+  "vendor": "ST"
46
+}

+ 8
- 0
ini/stm32f4.ini Dosyayı Görüntüle

@@ -205,6 +205,14 @@ build_flags        = ${stm32_variant.build_flags}
205 205
                      -DPIN_SERIAL2_TX=PD_5
206 206
 
207 207
 #
208
+# BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
209
+#
210
+[env:BIGTREE_BTT002_VET6]
211
+platform          = ${env:BIGTREE_BTT002.platform}
212
+extends           = env:BIGTREE_BTT002
213
+board             = marlin_BigTree_BTT002_VET6
214
+
215
+#
208 216
 # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
209 217
 #
210 218
 [env:BIGTREE_SKR_2]

Loading…
İptal
Kaydet