Browse Source

Clean up BIGTREE_BTT022 board definition (#15287)

Bas Stottelaar 5 years ago
parent
commit
a7a5607c1b

+ 6
- 23
buildroot/share/PlatformIO/boards/BigTree_Btt002.json View File

@@ -2,7 +2,7 @@
2 2
   "build": {
3 3
     "core": "stm32",
4 4
     "cpu": "cortex-m4",
5
-    "extra_flags": "-DSTM32F407xx",
5
+    "extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
6 6
     "f_cpu": "168000000L",
7 7
     "hwids": [
8 8
       [
@@ -21,34 +21,17 @@
21 21
   "debug": {
22 22
     "jlink_device": "STM32F407VE",
23 23
     "openocd_target": "stm32f4x",
24
-    "svd_path": "STM32F40x.svd",
25
-    "tools": {
26
-      "stlink": {
27
-        "server": {
28
-          "arguments": [
29
-            "-f",
30
-            "scripts/interface/stlink.cfg",
31
-            "-c",
32
-            "transport select hla_swd",
33
-            "-f",
34
-            "scripts/target/stm32f4x.cfg",
35
-            "-c",
36
-            "reset_config none"
37
-          ],
38
-          "executable": "bin/openocd",
39
-          "package": "tool-openocd"
40
-        }
41
-      }
42
-    }
24
+    "svd_path": "STM32F40x.svd"
43 25
   },
44 26
   "frameworks": [
45 27
     "arduino",
28
+    "cmsis",
46 29
     "stm32cube"
47 30
   ],
48
-  "name": "STM32F407VE (64k RAM. 512k Flash)",
31
+  "name": "STM32F407VE (192k RAM. 512k Flash)",
49 32
   "upload": {
50 33
     "disable_flushing": false,
51
-    "maximum_ram_size": 65536,
34
+    "maximum_ram_size": 131072,
52 35
     "maximum_size": 524288,
53 36
     "protocol": "stlink",
54 37
     "protocols": [
@@ -60,6 +43,6 @@
60 43
     "use_1200bps_touch": false,
61 44
     "wait_for_upload_port": false
62 45
   },
63
-  "url": "http://www.st.com/en/microcontrollers/stm32f407zg.html",
46
+  "url": "http://www.st.com/en/microcontrollers/stm32f407ve.html",
64 47
   "vendor": "Generic"
65 48
 }

+ 0
- 4
buildroot/share/PlatformIO/variants/BIGTREE_GENERIC_STM32F407_5X/variant.h View File

@@ -208,10 +208,6 @@ extern "C" {
208 208
   #define PI7   (115+STM32F4X_ADC_NUM) //1:TIM8_CH3
209 209
 #endif
210 210
 
211
-#ifdef HAL_GPIO_MODULE_ENABLED
212
-#error foo
213
-#endif
214
-
215 211
 
216 212
 // This must be a literal
217 213
 #define NUM_DIGITAL_PINS        (STM32F4X_GPIO_NUM)

Loading…
Cancel
Save