Pārlūkot izejas kodu

FYSETC Spider board (#21458)

George Fu 3 gadus atpakaļ
vecāks
revīzija
1d3f28da2e
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 10
- 9
Marlin/src/core/boards.h Parādīt failu

@@ -368,15 +368,16 @@
368 368
 #define BOARD_LERDGE_S                4212  // Lerdge S (STM32F407VE)
369 369
 #define BOARD_LERDGE_X                4213  // Lerdge X (STM32F407VE)
370 370
 #define BOARD_VAKE403D                4214  // VAkE 403D (STM32F446VET6)
371
-#define BOARD_FYSETC_S6               4215  // FYSETC S6 board
372
-#define BOARD_FYSETC_S6_V2_0          4216  // FYSETC S6 v2.0 board
373
-#define BOARD_FLYF407ZG               4217  // FLYF407ZG board (STM32F407ZG)
374
-#define BOARD_MKS_ROBIN2              4218  // MKS_ROBIN2 (STM32F407ZE)
375
-#define BOARD_MKS_ROBIN_PRO_V2        4219  // MKS Robin Pro V2 (STM32F407VE)
376
-#define BOARD_MKS_ROBIN_NANO_V3       4220  // MKS Robin Nano V3 (STM32F407VG)
377
-#define BOARD_ANET_ET4                4221  // ANET ET4 V1.x (STM32F407VGT6)
378
-#define BOARD_ANET_ET4P               4222  // ANET ET4P V1.x (STM32F407VGT6)
379
-#define BOARD_FYSETC_CHEETAH_V20      4223  // FYSETC Cheetah V2.0
371
+#define BOARD_FYSETC_S6               4215  // FYSETC S6 (STM32F446VET6)
372
+#define BOARD_FYSETC_S6_V2_0          4216  // FYSETC S6 v2.0 (STM32F446VET6)
373
+#define BOARD_FYSETC_SPIDER           4217  // FYSETC Spider (STM32F446VET6)
374
+#define BOARD_FLYF407ZG               4218  // FLYF407ZG (STM32F407ZG)
375
+#define BOARD_MKS_ROBIN2              4219  // MKS_ROBIN2 (STM32F407ZE)
376
+#define BOARD_MKS_ROBIN_PRO_V2        4220  // MKS Robin Pro V2 (STM32F407VE)
377
+#define BOARD_MKS_ROBIN_NANO_V3       4221  // MKS Robin Nano V3 (STM32F407VG)
378
+#define BOARD_ANET_ET4                4222  // ANET ET4 V1.x (STM32F407VGT6)
379
+#define BOARD_ANET_ET4P               4223  // ANET ET4P V1.x (STM32F407VGT6)
380
+#define BOARD_FYSETC_CHEETAH_V20      4224  // FYSETC Cheetah V2.0
380 381
 
381 382
 //
382 383
 // ARM Cortex M7

+ 2
- 0
Marlin/src/pins/pins.h Parādīt failu

@@ -600,6 +600,8 @@
600 600
   #include "stm32f4/pins_FYSETC_S6.h"           // STM32F4                                env:FYSETC_S6
601 601
 #elif MB(FYSETC_S6_V2_0)
602 602
   #include "stm32f4/pins_FYSETC_S6_V2_0.h"      // STM32F4                                env:FYSETC_S6
603
+#elif MB(FYSETC_SPIDER)
604
+  #include "stm32f4/pins_FYSETC_SPIDER.h"       // STM32F4                                env:FYSETC_S6
603 605
 #elif MB(FLYF407ZG)
604 606
   #include "stm32f4/pins_FLYF407ZG.h"           // STM32F4                                env:FLYF407ZG
605 607
 #elif MB(MKS_ROBIN2)

+ 13
- 5
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h Parādīt failu

@@ -24,7 +24,7 @@
24 24
 #include "env_validate.h"
25 25
 
26 26
 #if HOTENDS > 3 || E_STEPPERS > 3
27
-  #error "RUMBA32 supports up to 3 hotends / E-steppers."
27
+  #error "FYSETC S6 supports up to 3 hotends / E-steppers."
28 28
 #endif
29 29
 
30 30
 #ifndef BOARD_INFO_NAME
@@ -168,10 +168,18 @@
168 168
 //
169 169
 // Heaters / Fans
170 170
 //
171
-#define HEATER_0_PIN                        PB3
172
-#define HEATER_1_PIN                        PB4
173
-#define HEATER_2_PIN                        PB15
174
-#define HEATER_BED_PIN                      PC8
171
+#ifndef HEATER_0_PIN
172
+  #define HEATER_0_PIN                      PB3
173
+#endif
174
+#ifndef HEATER_0_PIN
175
+  #define HEATER_1_PIN                      PB4
176
+#endif
177
+#ifndef HEATER_0_PIN
178
+  #define HEATER_2_PIN                      PB15
179
+#endif
180
+#ifndef HEATER_0_PIN
181
+  #define HEATER_BED_PIN                    PC8
182
+#endif
175 183
 
176 184
 #define FAN_PIN                             PB0
177 185
 #define FAN1_PIN                            PB1

+ 110
- 0
Marlin/src/pins/stm32f4/pins_FYSETC_SPIDER.h Parādīt failu

@@ -0,0 +1,110 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2021 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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#ifndef BOARD_INFO_NAME
25
+  #define BOARD_INFO_NAME "FYSETC SPIDER"
26
+#endif
27
+#ifndef DEFAULT_MACHINE_NAME
28
+  #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
29
+#endif
30
+
31
+//
32
+// EEPROM Emulation
33
+//
34
+#if NO_EEPROM_SELECTED
35
+  #undef NO_EEPROM_SELECTED
36
+  //#define FLASH_EEPROM_EMULATION
37
+  //#define SRAM_EEPROM_EMULATION
38
+  #define I2C_EEPROM
39
+#endif
40
+
41
+#if ENABLED(I2C_EEPROM)
42
+  #define MARLIN_EEPROM_SIZE              0x1000  // 4KB
43
+#endif
44
+
45
+//
46
+// Steppers
47
+//
48
+#define X2_STEP_PIN                         PD12
49
+#define X2_DIR_PIN                          PC4
50
+#define X2_ENABLE_PIN                       PE8
51
+#define X2_CS_PIN                           PA15
52
+
53
+#define Z2_STEP_PIN                         PE1
54
+#define Z2_DIR_PIN                          PE0
55
+#define Z2_ENABLE_PIN                       PC5
56
+#define Z2_CS_PIN                           PD11
57
+
58
+//
59
+// Heaters / Fans
60
+//
61
+#define HEATER_0_PIN                        PB15
62
+#define HEATER_1_PIN                        PC8
63
+#define HEATER_2_PIN                        PB3
64
+#define HEATER_BED_PIN                      PB4
65
+
66
+//
67
+// Steppers
68
+//
69
+#define X_ENABLE_PIN                        PE9
70
+
71
+#if HAS_TMC_UART
72
+  #define X_SERIAL_TX_PIN                   PE7
73
+  #define X_SERIAL_RX_PIN                   PE7
74
+  #define Y_SERIAL_TX_PIN                   PE15
75
+  #define Y_SERIAL_RX_PIN                   PE15
76
+  #define Z_SERIAL_TX_PIN                   PD10
77
+  #define Z_SERIAL_RX_PIN                   PD10
78
+  #define E0_SERIAL_TX_PIN                  PD7
79
+  #define E0_SERIAL_RX_PIN                  PD7
80
+  #define E1_SERIAL_TX_PIN                  PC14
81
+  #define E1_SERIAL_RX_PIN                  PC14
82
+  #define E2_SERIAL_TX_PIN                  PC15
83
+  #define E2_SERIAL_RX_PIN                  PC15
84
+  #define X2_SERIAL_TX_PIN                  PA15
85
+  #define X2_SERIAL_RX_PIN                  PA15
86
+  #define Z2_SERIAL_TX_PIN                  PD11
87
+  #define Z2_SERIAL_RX_PIN                  PD11
88
+#endif
89
+
90
+//
91
+// Software SPI pins for TMC2130 stepper drivers
92
+//
93
+#define TMC_USE_SW_SPI
94
+#if ENABLED(TMC_USE_SW_SPI)
95
+  #ifndef TMC_SW_MOSI
96
+    #define TMC_SW_MOSI                     PE14
97
+  #endif
98
+  #ifndef TMC_SW_MISO
99
+    #define TMC_SW_MISO                     PE13
100
+  #endif
101
+  #ifndef TMC_SW_SCK
102
+    #define TMC_SW_SCK                      PE12
103
+  #endif
104
+#endif
105
+
106
+#if HOTENDS > 3 || E_STEPPERS > 3
107
+  #error "FYSETC SPIDER supports up to 3 hotends / E-steppers."
108
+#else
109
+  #include "pins_FYSETC_S6.h"
110
+#endif

Notiek ielāde…
Atcelt
Saglabāt