Ver código fonte

✨ MKS Robin Nano V1.3 (STM32F407VET6) (#22749)

mks-viva 2 anos atrás
pai
commit
24460052d2
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 0
Marlin/src/core/boards.h Ver arquivo

@@ -401,6 +401,7 @@
401 401
 #define BOARD_FYSETC_CHEETAH_V20      4231  // FYSETC Cheetah V2.0
402 402
 #define BOARD_TH3D_EZBOARD_LITE_V2    4232  // TH3D EZBoard Lite v2.0
403 403
 #define BOARD_INDEX_REV03             4233  // Index PnP Controller REV03 (STM32F407VET6/VGT6)
404
+#define BOARD_MKS_ROBIN_NANO_V1_3_F4  4234  // MKS Robin Nano V1.3 and MKS Robin Nano-S V1.3 (STM32F407VET6)
404 405
 
405 406
 //
406 407
 // ARM Cortex M7

+ 2
- 7
Marlin/src/lcd/extui/mks_ui/draw_ui.cpp Ver arquivo

@@ -347,13 +347,8 @@ void tft_style_init() {
347 347
   style_num_key_rel.body.grad_color = LV_COLOR_KEY_BACKGROUND;
348 348
   style_num_key_rel.text.color      = LV_COLOR_TEXT;
349 349
   style_num_key_rel.text.sel_color  = LV_COLOR_TEXT;
350
-  #if HAS_SPI_FLASH_FONT
351
-    style_num_key_pre.text.font = &gb2312_puhui32;
352
-    style_num_key_rel.text.font = &gb2312_puhui32;
353
-  #else
354
-    style_num_key_pre.text.font = LV_FONT_DEFAULT;
355
-    style_num_key_rel.text.font = LV_FONT_DEFAULT;
356
-  #endif
350
+  style_num_key_pre.text.font       = TERN(HAS_SPI_FLASH_FONT, &gb2312_puhui32, LV_FONT_DEFAULT);
351
+  style_num_key_rel.text.font       = TERN(HAS_SPI_FLASH_FONT, &gb2312_puhui32, LV_FONT_DEFAULT);
357 352
 
358 353
   style_num_key_pre.line.width        = 0;
359 354
   style_num_key_rel.line.width        = 0;

+ 1
- 3
Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp Ver arquivo

@@ -192,9 +192,7 @@ void tft_lvgl_init() {
192 192
 
193 193
   systick_attach_callback(SysTick_Callback);
194 194
 
195
-  #if HAS_SPI_FLASH_FONT
196
-    init_gb2312_font();
197
-  #endif
195
+  TERN_(HAS_SPI_FLASH_FONT, init_gb2312_font());
198 196
 
199 197
   tft_style_init();
200 198
   filament_pin_setup();

+ 2
- 0
Marlin/src/pins/pins.h Ver arquivo

@@ -649,6 +649,8 @@
649 649
   #include "stm32f4/pins_TH3D_EZBOARD_LITE_V2.h" // STM32F4                               env:TH3D_EZBoard_Lite_V2
650 650
 #elif MB(INDEX_REV03)
651 651
   #include "stm32f4/pins_INDEX_REV03.h"         // STM32F4                                env:Index_Mobo_Rev03
652
+#elif MB(MKS_ROBIN_NANO_V1_3_F4)
653
+  #include "stm32f4/pins_MKS_ROBIN_NANO_V1_3_F4.h" // STM32F4                             env:mks_robin_nano_v1_3_f4
652 654
 
653 655
 //
654 656
 // ARM Cortex M7

+ 3
- 181
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h Ver arquivo

@@ -26,200 +26,22 @@
26 26
  * https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/tree/master/hardware
27 27
  */
28 28
 
29
-#if NOT_TARGET(STM32F1, STM32F1xx)
30
-  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
31
-#elif HOTENDS > 2 || E_STEPPERS > 2
32
-  #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
33
-#endif
29
+#define ALLOW_STM32DUINO
30
+#include "env_validate.h"
34 31
 
35 32
 #define BOARD_INFO_NAME "MKS Robin Nano"
36 33
 
37
-#define BOARD_NO_NATIVE_USB
38
-
39
-// Avoid conflict with TIMER_SERVO when using the STM32 HAL
40
-#define TEMP_TIMER                             5
41
-
42 34
 //
43 35
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
44 36
 //
45 37
 #define DISABLE_JTAG
46 38
 
47 39
 //
48
-// EEPROM
49
-//
50
-#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
51
-  #define FLASH_EEPROM_EMULATION
52
-  #define EEPROM_PAGE_SIZE     (0x800U) // 2KB
53
-  #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
54
-  #define MARLIN_EEPROM_SIZE    EEPROM_PAGE_SIZE  // 2KB
55
-#endif
56
-
57
-#define SPI_DEVICE                             2
58
-
59
-//
60
-// Servos
61
-//
62
-#define SERVO0_PIN                          PA8   // Enable BLTOUCH
63
-
64
-//
65
-// Limit Switches
66
-//
67
-#define X_STOP_PIN                          PA15
68
-#define Y_STOP_PIN                          PA12
69
-#define Z_MIN_PIN                           PA11
70
-#define Z_MAX_PIN                           PC4
71
-
72
-//
73
-// Steppers
74
-//
75
-#define X_ENABLE_PIN                        PE4
76
-#define X_STEP_PIN                          PE3
77
-#define X_DIR_PIN                           PE2
78
-
79
-#define Y_ENABLE_PIN                        PE1
80
-#define Y_STEP_PIN                          PE0
81
-#define Y_DIR_PIN                           PB9
82
-
83
-#define Z_ENABLE_PIN                        PB8
84
-#define Z_STEP_PIN                          PB5
85
-#define Z_DIR_PIN                           PB4
86
-
87
-#define E0_ENABLE_PIN                       PB3
88
-#define E0_STEP_PIN                         PD6
89
-#define E0_DIR_PIN                          PD3
90
-
91
-#define E1_ENABLE_PIN                       PA3
92
-#define E1_STEP_PIN                         PA6
93
-#define E1_DIR_PIN                          PA1
94
-
95
-//
96
-// Temperature Sensors
97
-//
98
-#define TEMP_0_PIN                          PC1   // TH1
99
-#define TEMP_1_PIN                          PC2   // TH2
100
-#define TEMP_BED_PIN                        PC0   // TB1
101
-
102
-//
103
-// Heaters / Fans
104
-//
105
-#ifndef HEATER_0_PIN
106
-  #define HEATER_0_PIN                      PC3
107
-#endif
108
-#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
109
-  #ifndef FAN1_PIN
110
-    #define FAN1_PIN                        PB0
111
-  #endif
112
-#else
113
-  #ifndef HEATER_1_PIN
114
-    #define HEATER_1_PIN                    PB0
115
-  #endif
116
-#endif
117
-#ifndef FAN_PIN
118
-  #define FAN_PIN                           PB1   // FAN
119
-#endif
120
-#ifndef HEATER_BED_PIN
121
-  #define HEATER_BED_PIN                    PA0
122
-#endif
123
-
124
-//
125 40
 // Thermocouples
126 41
 //
127 42
 //#define TEMP_0_CS_PIN                     PE5   // TC1 - CS1
128 43
 //#define TEMP_0_CS_PIN                     PE6   // TC2 - CS2
129 44
 
130
-//
131
-// Power Supply Control
132
-//
133
-#if ENABLED(MKS_PWC)
134
-  #if ENABLED(TFT_LVGL_UI)
135
-    #undef PSU_CONTROL
136
-    #undef MKS_PWC
137
-    #define SUICIDE_PIN                     PB2
138
-    #define SUICIDE_PIN_STATE               LOW
139
-  #else
140
-    #define PS_ON_PIN                       PB2   // PW_OFF
141
-  #endif
142
-  #define KILL_PIN                          PA2
143
-  #define KILL_PIN_STATE                    HIGH
144
-#endif
145
-
146
-//
147
-// Misc. Functions
148
-//
149
-#if HAS_TFT_LVGL_UI
150
-  #define MT_DET_1_PIN                      PA4
151
-  #define MT_DET_2_PIN                      PE6
152
-  #define MT_DET_PIN_STATE                  LOW
153
-
154
-  #define WIFI_IO0_PIN                      PC13
155
-  #define WIFI_IO1_PIN                      PC7
156
-  #define WIFI_RESET_PIN                    PA5
157
-#else
158
-  //#define POWER_LOSS_PIN                  PA2   // PW_DET
159
-  //#define PS_ON_PIN                       PB2   // PW_OFF
160
-  #define FIL_RUNOUT_PIN                    PA4
161
-  #define FIL_RUNOUT2_PIN                   PE6
162
-#endif
163
-
164 45
 //#define LED_PIN                           PB2
165 46
 
166
-//
167
-// SD Card
168
-//
169
-#ifndef SDCARD_CONNECTION
170
-  #define SDCARD_CONNECTION              ONBOARD
171
-#endif
172
-
173
-#define SDIO_SUPPORT
174
-#define SDIO_CLOCK                       4500000  // 4.5 MHz
175
-#define SD_DETECT_PIN                       PD12
176
-#define ONBOARD_SD_CS_PIN                   PC11
177
-
178
-//
179
-// LCD / Controller
180
-//
181
-#define BEEPER_PIN                          PC5
182
-
183
-//
184
-// TFT with FSMC interface
185
-//
186
-#if HAS_FSMC_TFT
187
-  /**
188
-   * Note: MKS Robin TFT screens use various TFT controllers.
189
-   * If the screen stays white, disable 'TFT_RESET_PIN'
190
-   * to let the bootloader init the screen.
191
-   */
192
-  #define TFT_RESET_PIN                     PC6   // FSMC_RST
193
-  #define TFT_BACKLIGHT_PIN                 PD13
194
-
195
-  #define DOGLCD_MOSI                       -1    // Prevent auto-define by Conditionals_post.h
196
-  #define DOGLCD_SCK                        -1
197
-
198
-  #define TOUCH_CS_PIN                      PA7   // SPI2_NSS
199
-  #define TOUCH_SCK_PIN                     PB13  // SPI2_SCK
200
-  #define TOUCH_MISO_PIN                    PB14  // SPI2_MISO
201
-  #define TOUCH_MOSI_PIN                    PB15  // SPI2_MOSI
202
-
203
-  #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
204
-  #define FSMC_CS_PIN                       PD7
205
-  #define FSMC_RS_PIN                       PD11
206
-  #define FSMC_DMA_DEV                      DMA2
207
-  #define FSMC_DMA_CHANNEL               DMA_CH5
208
-
209
-  #define TFT_CS_PIN                 FSMC_CS_PIN
210
-  #define TFT_RS_PIN                 FSMC_RS_PIN
211
-
212
-  #define TOUCH_BUTTONS_HW_SPI
213
-  #define TOUCH_BUTTONS_HW_SPI_DEVICE          2
214
-
215
-  #define TFT_BUFFER_SIZE                  14400
216
-#endif
217
-
218
-#define HAS_SPI_FLASH                          1
219
-#if HAS_SPI_FLASH
220
-  #define SPI_FLASH_SIZE               0x1000000  // 16MB
221
-  #define SPI_FLASH_CS_PIN                  PB12
222
-  #define SPI_FLASH_MOSI_PIN                PB15
223
-  #define SPI_FLASH_MISO_PIN                PB14
224
-  #define SPI_FLASH_SCK_PIN                 PB13
225
-#endif
47
+#include "pins_MKS_ROBIN_NANO_common.h"

+ 210
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_common.h Ver arquivo

@@ -0,0 +1,210 @@
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
+/**
25
+ * MKS Robin Nano board common pin assignments
26
+ */
27
+
28
+#if HOTENDS > 2 || E_STEPPERS > 2
29
+  #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
30
+#endif
31
+
32
+#define BOARD_NO_NATIVE_USB
33
+
34
+// Avoid conflict with TIMER_SERVO when using the STM32 HAL
35
+#define TEMP_TIMER                             5
36
+
37
+//
38
+// EEPROM
39
+//
40
+#if ENABLED(SRAM_EEPROM_EMULATION)
41
+  #undef NO_EEPROM_SELECTED
42
+#endif
43
+#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
44
+  #define FLASH_EEPROM_EMULATION
45
+  #define EEPROM_PAGE_SIZE     (0x800U) // 2KB
46
+  #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
47
+  #define MARLIN_EEPROM_SIZE    EEPROM_PAGE_SIZE  // 2KB
48
+#endif
49
+
50
+#define SPI_DEVICE                             2
51
+
52
+//
53
+// Servos
54
+//
55
+#define SERVO0_PIN                          PA8   // Enable BLTOUCH
56
+
57
+//
58
+// Limit Switches
59
+//
60
+#define X_STOP_PIN                          PA15
61
+#define Y_STOP_PIN                          PA12
62
+#define Z_MIN_PIN                           PA11
63
+#define Z_MAX_PIN                           PC4
64
+
65
+//
66
+// Steppers
67
+//
68
+#define X_ENABLE_PIN                        PE4
69
+#define X_STEP_PIN                          PE3
70
+#define X_DIR_PIN                           PE2
71
+
72
+#define Y_ENABLE_PIN                        PE1
73
+#define Y_STEP_PIN                          PE0
74
+#define Y_DIR_PIN                           PB9
75
+
76
+#define Z_ENABLE_PIN                        PB8
77
+#define Z_STEP_PIN                          PB5
78
+#define Z_DIR_PIN                           PB4
79
+
80
+#define E0_ENABLE_PIN                       PB3
81
+#define E0_STEP_PIN                         PD6
82
+#define E0_DIR_PIN                          PD3
83
+
84
+#define E1_ENABLE_PIN                       PA3
85
+#define E1_STEP_PIN                         PA6
86
+#define E1_DIR_PIN                          PA1
87
+
88
+//
89
+// Temperature Sensors
90
+//
91
+#define TEMP_0_PIN                          PC1   // TH1
92
+#define TEMP_1_PIN                          PC2   // TH2
93
+#define TEMP_BED_PIN                        PC0   // TB1
94
+
95
+//
96
+// Heaters / Fans
97
+//
98
+#ifndef HEATER_0_PIN
99
+  #define HEATER_0_PIN                      PC3
100
+#endif
101
+#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
102
+  #ifndef FAN1_PIN
103
+    #define FAN1_PIN                        PB0
104
+  #endif
105
+#else
106
+  #ifndef HEATER_1_PIN
107
+    #define HEATER_1_PIN                    PB0
108
+  #endif
109
+#endif
110
+#ifndef FAN_PIN
111
+  #define FAN_PIN                           PB1   // FAN
112
+#endif
113
+#ifndef HEATER_BED_PIN
114
+  #define HEATER_BED_PIN                    PA0
115
+#endif
116
+
117
+//
118
+// Power Supply Control
119
+//
120
+#if ENABLED(MKS_PWC)
121
+  #if ENABLED(TFT_LVGL_UI)
122
+    #undef PSU_CONTROL
123
+    #undef MKS_PWC
124
+    #define SUICIDE_PIN                     PB2
125
+    #define SUICIDE_PIN_STATE               LOW
126
+  #else
127
+    #define PS_ON_PIN                       PB2   // PW_OFF
128
+  #endif
129
+  #define KILL_PIN                          PA2
130
+  #define KILL_PIN_STATE                    HIGH
131
+#endif
132
+
133
+//
134
+// Misc. Functions
135
+//
136
+#if HAS_TFT_LVGL_UI
137
+  #define MT_DET_1_PIN                      PA4
138
+  #define MT_DET_2_PIN                      PE6
139
+  #define MT_DET_PIN_STATE                  LOW
140
+
141
+  #define WIFI_IO0_PIN                      PC13
142
+  #define WIFI_IO1_PIN                      PC7
143
+  #define WIFI_RESET_PIN                    PA5
144
+#else
145
+  //#define POWER_LOSS_PIN                  PA2   // PW_DET
146
+  //#define PS_ON_PIN                       PB2   // PW_OFF
147
+  #define FIL_RUNOUT_PIN                    PA4
148
+  #define FIL_RUNOUT2_PIN                   PE6
149
+#endif
150
+
151
+//
152
+// SD Card
153
+//
154
+#ifndef SDCARD_CONNECTION
155
+  #define SDCARD_CONNECTION              ONBOARD
156
+#endif
157
+
158
+#define SDIO_SUPPORT
159
+#define SDIO_CLOCK                       4500000  // 4.5 MHz
160
+#define SD_DETECT_PIN                       PD12
161
+#define ONBOARD_SD_CS_PIN                   PC11
162
+
163
+//
164
+// LCD / Controller
165
+//
166
+#define BEEPER_PIN                          PC5
167
+
168
+//
169
+// TFT with FSMC interface
170
+//
171
+#if HAS_FSMC_TFT
172
+  /**
173
+   * Note: MKS Robin TFT screens use various TFT controllers.
174
+   * If the screen stays white, disable 'TFT_RESET_PIN'
175
+   * to let the bootloader init the screen.
176
+   */
177
+  #define TFT_RESET_PIN                     PC6   // FSMC_RST
178
+  #define TFT_BACKLIGHT_PIN                 PD13
179
+
180
+  #define DOGLCD_MOSI                       -1    // Prevent auto-define by Conditionals_post.h
181
+  #define DOGLCD_SCK                        -1
182
+
183
+  #define TOUCH_CS_PIN                      PA7   // SPI2_NSS
184
+  #define TOUCH_SCK_PIN                     PB13  // SPI2_SCK
185
+  #define TOUCH_MISO_PIN                    PB14  // SPI2_MISO
186
+  #define TOUCH_MOSI_PIN                    PB15  // SPI2_MOSI
187
+
188
+  #define LCD_USE_DMA_FSMC                        // Use DMA transfers to send data to the TFT
189
+  #define FSMC_CS_PIN                       PD7
190
+  #define FSMC_RS_PIN                       PD11
191
+  #define FSMC_DMA_DEV                      DMA2
192
+  #define FSMC_DMA_CHANNEL               DMA_CH5
193
+
194
+  #define TFT_CS_PIN                 FSMC_CS_PIN
195
+  #define TFT_RS_PIN                 FSMC_RS_PIN
196
+
197
+  #define TOUCH_BUTTONS_HW_SPI
198
+  #define TOUCH_BUTTONS_HW_SPI_DEVICE          2
199
+
200
+  #define TFT_BUFFER_SIZE                  14400
201
+#endif
202
+
203
+#define HAS_SPI_FLASH                          1
204
+#if HAS_SPI_FLASH
205
+  #define SPI_FLASH_SIZE               0x1000000  // 16MB
206
+  #define SPI_FLASH_CS_PIN                  PB12
207
+  #define SPI_FLASH_MOSI_PIN                PB15
208
+  #define SPI_FLASH_MISO_PIN                PB14
209
+  #define SPI_FLASH_SCK_PIN                 PB13
210
+#endif

+ 45
- 0
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V1_3_F4.h Ver arquivo

@@ -0,0 +1,45 @@
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
+/**
25
+ * MKS Robin nano V1.3 (STM32F407VET6) board pin assignments
26
+ * https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/tree/master/hardware
27
+ */
28
+
29
+#define ALLOW_STM32DUINO
30
+#include "env_validate.h"
31
+
32
+#define BOARD_INFO_NAME "MKS Robin Nano V1.3"
33
+
34
+//
35
+// EEPROM
36
+// Use one of these or SDCard-based Emulation will be used
37
+//
38
+#if NO_EEPROM_SELECTED
39
+  //#define SRAM_EEPROM_EMULATION                 // Use BackSRAM-based EEPROM emulation
40
+  //#define FLASH_EEPROM_EMULATION                // Use Flash-based EEPROM emulation
41
+#endif
42
+
43
+#define LED_PIN                             PB1
44
+
45
+#include "../stm32f1/pins_MKS_ROBIN_NANO_common.h"

+ 4
- 5
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3.h Ver arquivo

@@ -67,11 +67,10 @@
67 67
 #define E0_DIAG_PIN                         PC4
68 68
 #define E1_DIAG_PIN                         PE7
69 69
 
70
-//
71
-#define X_STOP_PIN                          PA15
72
-#define Y_STOP_PIN                          PD2
73
-#define Z_MIN_PIN                           PC8
74
-#define Z_MAX_PIN                           PC4
70
+#define X_STOP_PIN                    X_DIAG_PIN
71
+#define Y_STOP_PIN                    Y_DIAG_PIN
72
+#define Z_MIN_PIN                     Z_DIAG_PIN
73
+#define Z_MAX_PIN                    E0_DIAG_PIN
75 74
 
76 75
 //
77 76
 // Steppers

+ 24
- 0
ini/stm32f4.ini Ver arquivo

@@ -464,3 +464,27 @@ board_upload.offset_address = 0x0800C000
464 464
 build_flags         = ${stm32_variant.build_flags} -DHSE_VALUE=12000000U -O0
465 465
 debug_tool          = stlink
466 466
 upload_protocol     = stlink
467
+
468
+#
469
+# BOARD_MKS_ROBIN_NANO_V1_3_F4
470
+#  - MKS Robin Nano   V1.3 (STM32F407VET6) 5 Pololu Plug
471
+#  - MKS Robin Nano-S V1.3 (STM32F407VET6) 4 TMC2225 + 1 Pololu Plug
472
+#
473
+[env:mks_robin_nano_v1_3_f4]
474
+platform                    = ${common_stm32.platform}
475
+extends                     = stm32_variant
476
+board                       = marlin_STM32F407VGT6_CCM
477
+board_build.variant         = MARLIN_F4x7Vx
478
+board_build.offset          = 0x8000
479
+board_upload.offset_address = 0x08008000
480
+board_build.rename          = Robin_nano35.bin
481
+build_flags                 = ${stm32_variant.build_flags}
482
+                              -DMCU_STM32F407VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
483
+                              -DSTM32_FLASH_SIZE=512
484
+                              -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
485
+                              -DHAL_SD_MODULE_ENABLED
486
+                              -DHAL_SRAM_MODULE_ENABLED
487
+build_unflags               = ${stm32_variant.build_unflags}
488
+                              -DUSBCON -DUSBD_USE_CDC
489
+debug_tool                  = jlink
490
+upload_protocol             = jlink

Carregando…
Cancelar
Salvar