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
   "build": {
2
   "build": {
3
     "core": "stm32",
3
     "core": "stm32",
4
     "cpu": "cortex-m4",
4
     "cpu": "cortex-m4",
5
-    "extra_flags": "-DSTM32F407xx",
5
+    "extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
6
     "f_cpu": "168000000L",
6
     "f_cpu": "168000000L",
7
     "hwids": [
7
     "hwids": [
8
       [
8
       [
21
   "debug": {
21
   "debug": {
22
     "jlink_device": "STM32F407VE",
22
     "jlink_device": "STM32F407VE",
23
     "openocd_target": "stm32f4x",
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
   "frameworks": [
26
   "frameworks": [
45
     "arduino",
27
     "arduino",
28
+    "cmsis",
46
     "stm32cube"
29
     "stm32cube"
47
   ],
30
   ],
48
-  "name": "STM32F407VE (64k RAM. 512k Flash)",
31
+  "name": "STM32F407VE (192k RAM. 512k Flash)",
49
   "upload": {
32
   "upload": {
50
     "disable_flushing": false,
33
     "disable_flushing": false,
51
-    "maximum_ram_size": 65536,
34
+    "maximum_ram_size": 131072,
52
     "maximum_size": 524288,
35
     "maximum_size": 524288,
53
     "protocol": "stlink",
36
     "protocol": "stlink",
54
     "protocols": [
37
     "protocols": [
60
     "use_1200bps_touch": false,
43
     "use_1200bps_touch": false,
61
     "wait_for_upload_port": false
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
   "vendor": "Generic"
47
   "vendor": "Generic"
65
 }
48
 }

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

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

Loading…
Cancel
Save