Browse Source

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

Keith Bennett 3 years ago
parent
commit
cee50552ab
No account linked to committer's email address

+ 1
- 1
Marlin/src/pins/pins.h View File

616
 #elif MB(BTT_GTR_V1_0)
616
 #elif MB(BTT_GTR_V1_0)
617
   #include "stm32f4/pins_BTT_GTR_V1_0.h"        // STM32F4                                env:BIGTREE_GTR_V1_0 env:BIGTREE_GTR_V1_0_usb_flash_drive
617
   #include "stm32f4/pins_BTT_GTR_V1_0.h"        // STM32F4                                env:BIGTREE_GTR_V1_0 env:BIGTREE_GTR_V1_0_usb_flash_drive
618
 #elif MB(BTT_BTT002_V1_0)
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
 #elif MB(BTT_E3_RRF)
620
 #elif MB(BTT_E3_RRF)
621
   #include "stm32f4/pins_BTT_E3_RRF.h"          // STM32F4                                env:BIGTREE_E3_RRF
621
   #include "stm32f4/pins_BTT_E3_RRF.h"          // STM32F4                                env:BIGTREE_E3_RRF
622
 #elif MB(BTT_SKR_V2_0_REV_A)
622
 #elif MB(BTT_SKR_V2_0_REV_A)

+ 18
- 2
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h View File

29
 
29
 
30
 #define BOARD_INFO_NAME "BTT BTT002 V1.0"
30
 #define BOARD_INFO_NAME "BTT BTT002 V1.0"
31
 
31
 
32
+//#define MK3_FAN_PINS
33
+
32
 #define USES_DIAG_PINS
34
 #define USES_DIAG_PINS
33
 
35
 
34
 // Ignore temp readings during development.
36
 // Ignore temp readings during development.
169
 //
171
 //
170
 #define HEATER_0_PIN                        PE6   // Heater0
172
 #define HEATER_0_PIN                        PE6   // Heater0
171
 #define HEATER_BED_PIN                      PE5   // Hotbed
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
  * -----------------------------------BTT002 V1.0----------------------------------------
192
  * -----------------------------------BTT002 V1.0----------------------------------------

+ 46
- 0
buildroot/share/PlatformIO/boards/marlin_BigTree_BTT002_VET6.json View File

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 View File

205
                      -DPIN_SERIAL2_TX=PD_5
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
 # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
216
 # BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
209
 #
217
 #
210
 [env:BIGTREE_SKR_2]
218
 [env:BIGTREE_SKR_2]

Loading…
Cancel
Save