Browse Source

Add PIO board definitions for Malyan M200 (#11120)

Co-Authored-By: J.C. Nelson <xc0000005@users.noreply.github.com>
Dave Johnson 6 years ago
parent
commit
0ee34eb784

+ 78
- 0
buildroot/share/PlatformIO/boards/malyanM200.json View File

@@ -0,0 +1,78 @@
1
+{
2
+  "build": {
3
+    "core": "maple",
4
+    "cpu": "cortex-m3",
5
+    "extra_flags": "-DARDUINO_GENERIC_STM32F103C -DMCU_STM32F103CB",
6
+    "f_cpu": "72000000L",
7
+    "hwids": [
8
+        ["0x1EAF", "0x0003"],
9
+        ["0x1EAF", "0x0004"]
10
+    ],
11
+    "ldscript": "jtagOffset.ld",
12
+    "mcu": "stm32f103cb",
13
+    "variant": "malyanM200",
14
+    "genericvariant" : "MALYAN_M200_V1",
15
+    "vec_tab_addr": "0x8002000"
16
+  },
17
+  "debug": {
18
+    "tools": {
19
+      "stlink": {
20
+        "server": {
21
+          "arguments": [
22
+            "-f", "scripts/interface/stlink.cfg",
23
+            "-c", "transport select hla_swd",
24
+            "-f", "scripts/target/stm32f1x.cfg",
25
+            "-c", "reset_config none"
26
+          ],
27
+          "executable": "bin/openocd",
28
+          "package": "tool-openocd"
29
+        }
30
+      },
31
+      "stlink-v2": {
32
+        "server": {
33
+          "package": "tool-openocd",
34
+          "executable": "bin/openocd",
35
+          "arguments": [
36
+            "-f", "scripts/interface/stlink-v2.cfg",
37
+            "-c", "transport select hla_swd",
38
+            "-f", "scripts/target/stm32f1x.cfg"
39
+          ]
40
+        },
41
+        "default": true
42
+      },
43
+      "stlink-v2-1": {
44
+        "server": {
45
+          "package": "tool-openocd",
46
+          "executable": "bin/openocd",
47
+          "arguments": [
48
+            "-f", "scripts/interface/stlink-v2-1.cfg",
49
+            "-c", "transport select hla_swd",
50
+            "-f", "scripts/target/stm32f1x.cfg"
51
+          ]
52
+        }
53
+      },
54
+      "blackmagic": {
55
+        "hwids": [
56
+          [
57
+            "0x1d50",
58
+            "0x6018"
59
+          ]
60
+        ],
61
+        "require_debug_port": true
62
+      }
63
+    }
64
+  },
65
+  "frameworks": ["arduino", "arduinoSTM32GENERIC"],
66
+  "name": "Malyan STM32F103CB (20k RAM. 128k Flash)",
67
+  "upload": {
68
+    "disable_flushing": false,
69
+    "maximum_ram_size": 20480,
70
+    "maximum_size": 131072,
71
+    "protocol": "serial",
72
+    "require_upload_port": true,
73
+    "use_1200bps_touch": false,
74
+    "wait_for_upload_port": false
75
+  },
76
+  "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103cb.html",
77
+  "vendor": "Generic"
78
+}

+ 39
- 0
buildroot/share/PlatformIO/boards/malyanM200v2.json View File

@@ -0,0 +1,39 @@
1
+{
2
+  "build": {
3
+    "cpu": "cortex-m0",
4
+    "extra_flags": "-DSTM32F070xB",
5
+    "f_cpu": "48000000L",
6
+    "mcu": "stm32f070rbt6",
7
+    "genericvariant" : "MALYAN_M200_V2",
8
+    "vec_tab_addr": "0x8002000"
9
+  },
10
+  "debug": {
11
+    "default_tools": [
12
+      "stlink"
13
+    ],
14
+    "onboard_tools": [
15
+      "stlink"
16
+    ],
17
+    "openocd_board": "st_nucleo_f0",
18
+    "openocd_target": "stm32f0x"
19
+  },
20
+  "frameworks": [
21
+    "mbed",
22
+    "stm32cube",
23
+    "arduinoSTM32GENERIC"
24
+  ],
25
+  "name": "Malyan M200 V2/Delta",
26
+  "upload": {
27
+    "maximum_ram_size": 16384,
28
+    "maximum_size": 131072,
29
+    "protocol": "mbed",
30
+    "protocols": [
31
+      "jlink",
32
+      "stlink",
33
+      "blackmagic",
34
+      "mbed"
35
+    ]
36
+  },
37
+  "url": "https://developer.mbed.org/platforms/ST-Nucleo-F070RB/",
38
+  "vendor": "Malyan"
39
+}

Loading…
Cancel
Save