Browse Source

✨ BigTree SKR 2 with F429 (#23177)

ellensp 3 years ago
parent
commit
bfead67544
No account linked to committer's email address

+ 1
- 1
Marlin/src/core/boards.h View File

382
 #define BOARD_BTT_BTT002_V1_0         4210  // BigTreeTech BTT002 v1.0 (STM32F407VGT6)
382
 #define BOARD_BTT_BTT002_V1_0         4210  // BigTreeTech BTT002 v1.0 (STM32F407VGT6)
383
 #define BOARD_BTT_E3_RRF              4211  // BigTreeTech E3 RRF (STM32F407VGT6)
383
 #define BOARD_BTT_E3_RRF              4211  // BigTreeTech E3 RRF (STM32F407VGT6)
384
 #define BOARD_BTT_SKR_V2_0_REV_A      4212  // BigTreeTech SKR v2.0 Rev A (STM32F407VGT6)
384
 #define BOARD_BTT_SKR_V2_0_REV_A      4212  // BigTreeTech SKR v2.0 Rev A (STM32F407VGT6)
385
-#define BOARD_BTT_SKR_V2_0_REV_B      4213  // BigTreeTech SKR v2.0 Rev B (STM32F407VGT6)
385
+#define BOARD_BTT_SKR_V2_0_REV_B      4213  // BigTreeTech SKR v2.0 Rev B (STM32F407VGT6/STM32F429VGT6)
386
 #define BOARD_BTT_GTR_V1_0            4214  // BigTreeTech GTR v1.0 (STM32F407IGT)
386
 #define BOARD_BTT_GTR_V1_0            4214  // BigTreeTech GTR v1.0 (STM32F407IGT)
387
 #define BOARD_BTT_OCTOPUS_V1_0        4215  // BigTreeTech Octopus v1.0 (STM32F446ZET6)
387
 #define BOARD_BTT_OCTOPUS_V1_0        4215  // BigTreeTech Octopus v1.0 (STM32F446ZET6)
388
 #define BOARD_BTT_OCTOPUS_V1_1        4216  // BigTreeTech Octopus v1.1 (STM32F446ZET6)
388
 #define BOARD_BTT_OCTOPUS_V1_1        4216  // BigTreeTech Octopus v1.1 (STM32F446ZET6)

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

622
 #elif MB(BTT_SKR_V2_0_REV_A)
622
 #elif MB(BTT_SKR_V2_0_REV_A)
623
   #include "stm32f4/pins_BTT_SKR_V2_0_REV_A.h"  // STM32F4                                env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB env:BIGTREE_SKR_2_USB_debug
623
   #include "stm32f4/pins_BTT_SKR_V2_0_REV_A.h"  // STM32F4                                env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB env:BIGTREE_SKR_2_USB_debug
624
 #elif MB(BTT_SKR_V2_0_REV_B)
624
 #elif MB(BTT_SKR_V2_0_REV_B)
625
-  #include "stm32f4/pins_BTT_SKR_V2_0_REV_B.h"  // STM32F4                                env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB env:BIGTREE_SKR_2_USB_debug
625
+  #include "stm32f4/pins_BTT_SKR_V2_0_REV_B.h"  // STM32F4                                env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB env:BIGTREE_SKR_2_USB_debug env:BIGTREE_SKR_2_F429 env:BIGTREE_SKR_2_F429_USB env:BIGTREE_SKR_2_F429_USB_debug
626
 #elif MB(BTT_OCTOPUS_V1_0)
626
 #elif MB(BTT_OCTOPUS_V1_0)
627
   #include "stm32f4/pins_BTT_OCTOPUS_V1_0.h"    // STM32F4                                env:BIGTREE_OCTOPUS_V1 env:BIGTREE_OCTOPUS_V1_USB
627
   #include "stm32f4/pins_BTT_OCTOPUS_V1_0.h"    // STM32F4                                env:BIGTREE_OCTOPUS_V1 env:BIGTREE_OCTOPUS_V1_USB
628
 #elif MB(BTT_OCTOPUS_V1_1)
628
 #elif MB(BTT_OCTOPUS_V1_1)

+ 50
- 0
buildroot/share/PlatformIO/boards/marlin_STM32F429VGT6.json View File

1
+{
2
+  "build": {
3
+    "cpu": "cortex-m4",
4
+    "extra_flags": "-DSTM32F4 -DSTM32F429xx",
5
+    "f_cpu": "168000000L",
6
+    "mcu": "stm32f429vgt6",
7
+    "product_line": "STM32F429xx",
8
+    "variant": "MARLIN_F4x7Vx"
9
+  },
10
+  "connectivity": [
11
+    "can"
12
+  ],
13
+  "debug": {
14
+    "default_tools": [
15
+      "stlink"
16
+    ],
17
+    "jlink_device": "STM32F429VG",
18
+    "onboard_tools": [
19
+      "stlink"
20
+    ],
21
+    "openocd_board": "stm32f429",
22
+    "openocd_target": "stm32f4x",
23
+    "svd_path": "STM32F429x.svd"
24
+  },
25
+  "frameworks": [
26
+    "arduino",
27
+    "cmsis",
28
+    "mbed",
29
+    "stm32cube",
30
+    "libopencm3",
31
+    "zephyr"
32
+  ],
33
+  "name": "STM32F429VG (128k RAM, 64k CCM RAM, 1024k Flash)",
34
+  "upload": {
35
+    "disable_flushing": false,
36
+    "maximum_ram_size": 131072,
37
+    "maximum_size": 1048576,
38
+    "protocol": "stlink",
39
+    "protocols": [
40
+      "stlink",
41
+      "dfu",
42
+      "jlink"
43
+    ],
44
+    "require_upload_port": true,
45
+    "use_1200bps_touch": false,
46
+    "wait_for_upload_port": false
47
+  },
48
+  "url": "https://www.st.com/en/microcontrollers-microprocessors/stm32f429-439.html",
49
+  "vendor": "ST"
50
+}

+ 33
- 0
ini/stm32f4.ini View File

246
 build_unflags     = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
246
 build_unflags     = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
247
 
247
 
248
 #
248
 #
249
+# Bigtreetech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Flash Drive Support
250
+#
251
+[env:BIGTREE_SKR_2_F429]
252
+platform                    = ${common_stm32.platform}
253
+extends                     = stm32_variant
254
+platform_packages           = ${stm_flash_drive.platform_packages}
255
+board                       = marlin_STM32F429VGT6
256
+board_build.variant         = MARLIN_F4x7Vx
257
+board_build.offset          = 0x8000
258
+board_upload.offset_address = 0x08008000
259
+build_flags                 = ${stm_flash_drive.build_flags}
260
+                              -DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
261
+                              -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
262
+                              -DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
263
+                              -DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
264
+upload_protocol             = stlink
265
+
266
+#
267
+# BigTreeTech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Media Share Support
268
+#
269
+[env:BIGTREE_SKR_2_F429_USB]
270
+platform          = ${common_stm32.platform}
271
+extends           = env:BIGTREE_SKR_2_F429
272
+build_flags       = ${env:BIGTREE_SKR_2_F429.build_flags} -DUSBD_USE_CDC_MSC
273
+build_unflags     = ${env:BIGTREE_SKR_2_F429.build_unflags} -DUSBD_USE_CDC
274
+
275
+[env:BIGTREE_SKR_2_F429_USB_debug]
276
+platform          = ${common_stm32.platform}
277
+extends           = env:BIGTREE_SKR_2_F429_USB
278
+build_flags       = ${env:BIGTREE_SKR_2_F429_USB.build_flags} -O0
279
+build_unflags     = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
280
+
281
+#
249
 # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
282
 # BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
250
 #
283
 #
251
 [env:BIGTREE_OCTOPUS_V1]
284
 [env:BIGTREE_OCTOPUS_V1]

Loading…
Cancel
Save