Skip to content

Commit 746a07b

Browse files
committed
Initial support for the latest Arduino core v2.0 // Issue #521
The structure of the latest Arduino core introduces more complex target configuration. Now the variant folders are common for several boards so we need to properly remap board ID to properly handle conditional compilation. Switched Arduino core to CMSIS v5.7.0
1 parent 6025ae1 commit 746a07b

File tree

178 files changed

+696
-259
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+696
-259
lines changed

boards/adafruit_feather_f405.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"cpu": "cortex-m4",
55
"extra_flags": "-DSTM32F405xx",
66
"f_cpu": "168000000L",
7+
"framework_extra_flags": {
8+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
9+
},
710
"mcu": "stm32f405rgt6",
811
"product_line": "STM32F405xx",
9-
"variant": "FEATHER_F405",
12+
"variant": "STM32F4xx/F405RGT_F415RGT",
1013
"zephyr": {
1114
"variant": "adafruit_feather_stm32f405"
1215
}

boards/afroflight_f103cb.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_AFROFLIGHT_F103CB_XX.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m3",
58
"extra_flags": "-DSTM32F1xx -DSTM32F103xB",
69
"f_cpu": "72000000L",
710
"mcu": "stm32f103cbt6",
811
"product_line": "STM32F103xB",
9-
"variant": "AFROFLIGHT_F103CB"
12+
"variant": "STM32F1xx/F103C8T_F103CB(T-U)"
1013
},
1114
"debug": {
1215
"jlink_device": "STM32F103CB",

boards/armed_v1.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"cpu": "cortex-m4",
55
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
66
"f_cpu": "168000000L",
7+
"framework_extra_flags": {
8+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
9+
},
710
"mcu": "stm32f407vet6",
811
"product_line": "STM32F407xx",
9-
"variant": "ARMED_V1"
12+
"variant": "STM32F4xx/F407V(E-G)T_F417V(E-G)T"
1013
},
1114
"connectivity": [
1215
"can"

boards/black_f407ve.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_BLACK_F407VX.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m4",
58
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
69
"f_cpu": "168000000L",
710
"framework_extra_flags": {
8-
"arduino": "-DARDUINO_BLACK_F407VE"
11+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
912
},
1013
"mcu": "stm32f407vet6",
1114
"product_line": "STM32F407xx",
12-
"variant": "BLACK_F407XX"
15+
"variant": "STM32F4xx/F407V(E-G)T_F417V(E-G)T"
1316
},
1417
"connectivity": [
1518
"can"

boards/black_f407vg.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_BLACK_F407VX.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m4",
58
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
69
"f_cpu": "168000000L",
710
"framework_extra_flags": {
8-
"arduino": "-DARDUINO_BLACK_F407VG"
11+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
912
},
1013
"mcu": "stm32f407vgt6",
1114
"product_line": "STM32F407xx",
12-
"variant": "BLACK_F407XX"
15+
"variant": "STM32F4xx/F407V(E-G)T_F417V(E-G)T"
1316
},
1417
"connectivity": [
1518
"can"

boards/black_f407ze.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_BLACK_F407ZX.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m4",
58
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
69
"f_cpu": "168000000L",
710
"framework_extra_flags": {
8-
"arduino": "-DARDUINO_BLACK_F407ZE"
11+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
912
},
1013
"mcu": "stm32f407zet6",
1114
"product_line": "STM32F407xx",
12-
"variant": "BLACK_F407XX"
15+
"variant": "STM32F4xx/F407Z(E-G)T_F417Z(E-G)T"
1316
},
1417
"connectivity": [
1518
"can"

boards/black_f407zg.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_BLACK_F407ZX.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m4",
58
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
69
"f_cpu": "168000000L",
710
"framework_extra_flags": {
8-
"arduino": "-DARDUINO_BLACK_F407ZG"
11+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
912
},
1013
"mcu": "stm32f407zgt6",
1114
"product_line": "STM32F407xx",
12-
"variant": "BLACK_F407XX",
15+
"variant": "STM32F4xx/F407Z(E-G)T_F417Z(E-G)T",
1316
"zephyr": {
1417
"variant": "black_f407zg_pro"
1518
}

boards/blackpill_f103c8.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_PILL_F103Cx.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m3",
58
"extra_flags": "-DSTM32F1 -DSTM32F103xB",
@@ -16,7 +19,7 @@
1619
],
1720
"mcu": "stm32f103c8t6",
1821
"product_line": "STM32F103xB",
19-
"variant": "PILL_F103XX",
22+
"variant": "STM32F1xx/F103C8T_F103CB(T-U)",
2023
"zephyr": {
2124
"variant": "stm32_min_dev_black"
2225
}

boards/blackpill_f103c8_128.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"build": {
3+
"arduino": {
4+
"variant_h": "variant_PILL_F103Cx.h"
5+
},
36
"core": "stm32",
47
"cpu": "cortex-m3",
58
"extra_flags": "-DSTM32F1 -DSTM32F103xB",
@@ -16,7 +19,7 @@
1619
],
1720
"mcu": "stm32f103c8t6",
1821
"product_line": "STM32F103xB",
19-
"variant": "PILL_F103XX",
22+
"variant": "STM32F1xx/F103C8T_F103CB(T-U)",
2023
"zephyr": {
2124
"variant": "stm32_min_dev_black"
2225
}

boards/blackpill_f401cc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"cpu": "cortex-m4",
55
"extra_flags": "-DSTM32F4xx -DSTM32F401xC",
66
"f_cpu": "84000000L",
7+
"framework_extra_flags": {
8+
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
9+
},
710
"mcu": "stm32f401ccu6",
811
"product_line": "STM32F401xC",
9-
"variant": "Generic_F401Cx"
12+
"variant": "STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)"
1013
},
1114
"debug": {
1215
"jlink_device": "STM32F401CC",

0 commit comments

Comments
 (0)